NET/MASTER Network Control Language (NCL) Reference Manual
&SYS.ERROR.LIB
System Variables
106126 Tandem Computers Incorporated 5–23
&SYS.ERROR.LIB The &SYS.ERROR.LIB system variable contains the name of the source library
associated with the NCL procedure that issued the error.
This system variable can be used only in an ON error handler.
&SYS.ERROR.LIB
Consideration
See also &SYS.ERROR.FILE, which contains the name of the source file associated with
the NCL procedure that contained the error.
Example
The following procedure contains an arithmetic error. When the error occurs, the error
handler displays the name of the source library that contains this procedure:
ONPROC: PROCEDURE
ON ERROR DO
WRITE DATA="THE SOURCE FILE NAME OF THIS PROCEDURE IS",
&SYS.ERROR.LIB
RESUME
END
&A=10
&C = &A / 0
END ONPROC