The Stop command conditionally terminates, or continues, script execution based on the return value of the preceding command.

This command has the following format:

Stop ReturnCodes  

Where the following argument is defined:

  • ReturnCodes has the same format and interpretation as for the Skip command.


Jobs that terminate as the result of a Stop command do not report an error. By default, script execution terminates whenever the status code returned by the execution of a script command is non-zero. By using the Stop command you can control the conditions under which the script execution will terminate, as well as whether the termination conditions will be regarded as a job error.

More Information