IGNORE [ System Debug Reference Manual ] MPE/iX 5.0 Documentation
System Debug Reference Manual
IGNORE
Protects the next command (list) from error bailout.
Syntax
IGNORE option
The IGNORE command protects the following command, or command list, from
aborting due to a detected error condition. Unless protected by the
IGNORE command, a command list or subsequent macro commands are
aborted/flushed as soon as any error occurs.
A special option, QUIET, causes error messages that occur within a
protected command list to be suppressed.
This is similar to the MPE V/E CONTINUE command used in job and command
files. See the environment variable AUTOIGNORE.
Parameters
option The user can choose to display/suppress error messages
that occur during the command (list) that is protected
by the IGNORE command. Two options are supported:
LOUD Display error messages (default)
QUIET Suppress error messages
Examples
%nmdebug > {wl 111; wl 22q; wl 333; wl 444}
$111
Expected a number, variable,function, or procedure (error #3720)
undefined operator is:"22q"
In this example, an error causes the rest of a command list to be
aborted, since it is not protected by the IGNORE command. As a result,
the command that prints the value ($333) is never executed.
%nmdebug > ignore; {wl 111; wl 22q; wl 333; wl 444}
$111
Expected a number, variable,function, or procedure (error #3720)
undefined operator is:"22q"
$333
$444
In this example, the IGNORE command is used to protect the entire command
list that follows it. Even though the second command in the list
produces an error, execution of the rest of the list continues. By
default, the option LOUD is assumed, and all resulting error messages are
displayed.
%nmdebug > ignore quiet; {wl 111; wl 22q; wl 333; wl 444}
$111
$333
$444
In this example, the IGNORE QUIET command is used to protect the command
list that follows it AND to suppress all error messages. Note that the
error encountered when attempting to write the value "22" is silently
ignored, and the command list execution continues.
%nmdebug > ignore quiet; use unwind
In this example, the IGNORE QUIET command is used to protect the
execution of all commands found within the USE file unwind. If this use
file uses additional USE files, the commands in those additional USE
files are also protected.
%nmdebug > ignore quiet; printsum (200 tablesize("mytable"))
In this example, the IGNORE QUIET command is used to protect the
following command that invokes a macro named printsum. All commands
within this macro are protected. In addition, all commands within the
macro function tablesize are protected.
Limitations, Restrictions
none
CAUTION The output format of all System Debug commands is subject to
change without notice. Programs that are developed to
postprocess System Debug output should not depend on the exact
format (spacing, alignment, number of lines, uppercase or
lowercase, or spelling) of any System Debug command output.
MPE/iX 5.0 Documentation