NET/MASTER Network Control Language (NCL) Reference Manual

&SYS.ERROR.CODE
System Variables
5–18 106126 Tandem Computers Incorporated
&SYS.ERROR.CODE The &SYS.ERROR.CODE system variable contains the integer setting that indicates the
NCL error type.
This system variable can be used only in an ON error handler.
&SYS.ERROR.CODE
Considerations
NCL sets this variable whenever it detects an error.
For a list of system-defined error condition names and NCL error codes, see Table
2-3 in Section 2, “Core Statements.”
See also &SYS.ERROR COND and &SYS.ERROR.TEXT. &SYS.ERROR.COND
contains the textual description of the error that was issued. &SYS.ERROR.TEXT
contains the text of a message that holds further information about the error.
For a full list of all NCL error codes, refer to the NonStop NET/MASTER Messages
Manual.
Example
In the following example, &SYS.ERROR.CODE contains 7170, indicating that the panel
named TOOBAD does not exist:
ONPROC: PROCEDURE
ON ERROR DO
SAY "THE TYPE OF ERROR IS " &SYS.ERROR.CODE
RESUME
END
PANEL NAME=TOOBAD
END ONPROC