abort

The abort command determines what will happen if an error occurs during a script file. Use the command:
 
abort number

in your script file, where number indicates what you want to happen on an error:
 
0 The default abort status: turn off the abort option; all scripts continue to execute. 
1 Abort all pending script files and exit Autolog if an error occurs. Any pending shell or system scripts continue to execute. 
2 Abort all pending script files, exit Autolog, and abort all pending shell or system script files too. 
4 Abort all pending Autolog script files, but do not exit Autolog. 

NoteUnder DOS and Windows, abort 2 does not terminate pending shell or system-level scripts.

You can change the abort status as needed during a script file.

The abort command is somewhat "all or nothing" in its error handling. You may instead want to use the if command to examine the error registers to determine whether a specific command resulted in an error.