NET/MASTER Network Control Language (NCL) Reference Manual
&SYS.ERROR.TEXT
System Variables
5–32 106126 Tandem Computers Incorporated
&SYS.ERROR.TEXT The &SYS.ERROR.TEXT system variable contains additional information on the nature
of an NCL error or condition.
This system variable can be used only in an ON error handler.
&SYS.ERROR.TEXT
Considerations
Some NCL messages that relate to conditions (such as panel skipping) are placed
in &SYS.ERROR.TEXT. Refer to message number NNM1354 in the NonStop
NET/MASTER Messages Manual.
See also the other &SYS.ERROR system variables.
Example
In the following example, &SYS.ERROR.CODE contains 7170, indicating that the panel
named TOOBAD does not exist:
ONPROC: PROCEDURE
ON ERROR DO
WRITE DATA=THE TYPE OF ERROR IS &SYS.ERROR.CODE,
"AND EXTRA TEXT = " &SYS.ERROR.TEXT
RESUME
END
PANEL NAME=TOOBAD
END ONPROC
In the previous example, NCL displays the &SYS.ERROR.TEXT, system variable,
which contains information on the cause of the error. The text displayed is what
would have appeared in the OCS window if there was no ON ERROR statement—
NNM1361 PANEL TOOBAD NOT DEFINED.