NBSpool for MPE Reference Guide
Chapter 5
5-10
ERROR Command
By default, if a command in the command list should fail, execution of the XEQ command
terminates immediately. However, with the
ERROR command this action can be altered a number of
ways. NBSpool can be directed to either abort, ignore the error or execute the file up to the
command that caused the error.
Unlike the MPE command
:CONTINUE, once an ERROR command is encountered it stays in effect
until another
ERROR command is found or the end of the XEQ list is reached. For example, if an
“ERROR IGNORE” is the first line of an XEQ file, any errors encountered on any command in the
XEQ list will be ignored.
ERROR Syntax
X> ERROR {ABORT }
{IGNORE}
{SKIP }
{STOP }
ERROR Parameters
Parameter Description
ABORT
Immediately terminate NBSpool.
IGNORE
Ignore the error and continue with the next command.
SKIP
Skip to the end of the XEQ command file and stop or wait, depending on
whether the file was executed with a
WAIT parameter.
STOP
Stop the execution of the XEQ command. This is the default setting.
ERROR Examples
The following command file will copy all class LP $STDLIST files to one computer, and all other
$STDLIST files to another computer:
*THIS IS A COMMENT
ERROR IGNORE
COPY $,*LP TO N1
COPY $,~*LP TO N2