NET/MASTER Network Control Language (NCL) Reference Manual

&SYSMSG
System Variables
5–56 106126 Tandem Computers Incorporated
Example
In the following example, the procedure OPEN_PROC shows how you might use
&SYSMSG:
OPEN_PROC: PROCEDURE
FILE OPEN ID=LLLL FORMAT=UNMAPPED
SAY &SYS.FILE.RC = “ &SYS.FILE.RC
SAY “&SYSMSG = “ &SYSMSG
END OPEN_PROC
In the previous example two system variables are displayed: &SYS.FILE.RC and
&SYSMSG. Both were set as a result of the failure of the OPEN FILE verb.
&SYS.FILE.RC contains the value 16, indicating that an error occurred and that more
information is to be found in &SYSMSG. &SYSMSG contains a message that explains
the reason for the failure.