NET/MASTER Network Control Language (NCL) Reference Manual
&SYS.NCLID
System Variables
5–64 106126 Tandem Computers Incorporated
&SYS.NCLID The &SYS.NCLID system variable contains the unique identifier of the NCL process
that is referring to it. Each NCL process in the system is identified by a unique
identifying number. This is to allow different NCL processes to communicate with
each other or to allow a terminal user to communicate with an NCL process.
For example, the NCL WRITE verb uses &SYS.NCLID to send a message from one
NCL process to another. As another example, NonStop NET/MASTER MS
commands FLUSH, GO, and INTQ (issued from an OCS window or from an NCL
process) use &SYS.NCLID to communicate directly with any NCL process.
The SYSPARMS option NCLXUSER=YES must be set to allow communication
between NCL processes.
&SYS.NCLID
Considerations
Each procedure in the system is allocated a unique identifier when it is started,
and it retains this identifier until it ends. Multiple invocations of the same
procedure therefore have the same name but different NCL IDs.
The NonStop NET/MASTER MS SHOW NCL command lists all NCL processes
running in the current environment.
For more information on interprocess communications, refer to the NonStop
NET/MASTER NCL Programmer’s Guide.
See the WRITE verb in Section 3, “Verbs.”
For more information on the FLUSH, GO, and INTQ commands, refer to the
NonStop NET/MASTER MS Command Reference Manual.
Example
The following example displays the &SYS.NCLID system variable:
IDPROC: PROCEDURE
WRITE DATA="Procedure "&SYS.NCLID" is in execution"
END IDPROC