EXIT

You can use this function to terminate the execution of the script. An optional parameter defines the return code that should be passed back to the caller. If the return code is not specified on the EXIT function, the %MAXRC variable defines the return code passed back to the caller.

The format of this function is EXIT return_code. For example,

EXIT 16

The script execution terminates with the return code 16.

SET %MAXRC = 32
EXIT

The script execution terminates with return code 32.