NET/MASTER Network Control Language (NCL) Reference Manual

&SYS.ERROR.FILE
System Variables
106126 Tandem Computers Incorporated 5–21
&SYS.ERROR.FILE The &SYS.ERROR.FILE system variable contains the name of the source file associated
with the NCL procedure that contained the error. Only the eight-character file name is
stored in this variable; the full path name of the file is not stored.
This system variable can be used only in an ON error handler.
&SYS.ERROR.FILE
Consideration
See also &SYS.ERROR.LIB, which contains the name of the source library associated
with the NCL procedure that issued the error.
Example
The following example is a procedure that contains an arithmetic error. When the
error occurs, the error handler displays the name of the source file that contains this
procedure:
ONPROC: PROCEDURE
ON ERROR DO
WRITE DATA="THE SOURCE FILE NAME OF THIS PROCEDURE IS",
&SYS.ERROR.FILE
RESUME
END
&A=10
&B=0
&C = &A / &B
END ONPROC