Previous Topic: &ZNCLENV

Next Topic: &ZNCLNEST


&ZNCLID

Returns the unique identifier of the NCL process.

Each NCL process in the system has a unique identifying number, which is used to identify individual processes and to allow communications from a terminal to a particular procedure. In an NCL environment in which many independent processes is executing concurrently, GO, INTQ, and FLUSH commands issued either from an OCS window or from an NCL process executing in the same environment, can use the NCL identifier to communicate directly with a specific process.

The &ZNCLID system variable allows an NCL procedure to determine its own NCL ID.

Example: &ZNCLID

&WRITE DATA=NCL Proc &ZNCLID recovering controller &PUNAME. 

Notes:

Each NCL process 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.

GO, INTQ, and FLUSH commands normally apply only to NCL procedures that are executing in the NCL environment associated with the terminal or procedure that issues the commands.

Note: For more information, see the GO, INTQ, FLUSH, and SHOW NCL command descriptions in the Online Help.