The setexitcode command sets an exit code for the program that is passed back to the command shell on program termination. This is used to report error codes when running ftpshell scripts from the command line. The syntax is
setexitcode <integer number>;
An example is
setexitcode 5;