NET/MASTER Network Control Language (NCL) Reference Manual
&SYS.ERROR.LINE
System Variables
5–24 106126 Tandem Computers Incorporated
&SYS.ERROR.LINE The &SYS.ERROR.LINE system variable contains the TEDIT line number in the source
file at which the error occurred.
This system variable can be used only in an ON error handler.
&SYS.ERROR.LINE
Considerations
If lines have been inserted into the procedure since the last renumbering, the
number supplied in this variable may contain a decimal point.
See also &SYS.ERROR.COLUMN, which contains the column in a line of code in
which an error occurred.
Example
In the following example, the procedure named ONPROC contains a statement that
divides the variable &A by 0 (zero), causing an error. The error handler (starting with
the ON statement) displays the line number and column number of the source file in
which the error occurred:
ONPROC: PROCEDURE
ON ERROR DO
WRITE DATA="An error occurred in column ",
&SYS.ERROR.COLUMN ,
"of line "&SYS.ERROR.LINE
RESUME
END
&A=10
&C = &A / 0
END ONPROC