<< back to sysax.com Product page

8.1. Setting program exit codes

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 FTP scripts from the command line.

The syntax is

Exhibit 8.1. Syntax of command for setting program exit codes

setexitcode <integer number>;

Exhibit 8.2. Example for using the command for setting program exit codes

setexitcode 5;