NET/MASTER Network Control Language (NCL) Reference Manual

&SYS.OCS.ID and &SYS.OCS.IDO
System Variables
5–70 106126 Tandem Computers Incorporated
&SYS.OCS.ID and &SYS.OCS.IDO
The &SYS.OCS.ID and &SYS.OCS.IDO system variables contain the OCS ID name for
the current window and the second window. These system variables enable an NCL
procedure to test the ID of the current OCS window. &SYS.OCS.ID is set to the same
ID used in the OCSID command. If no ID has been set, &SYS.OCS.ID returns a null
value.
&SYS.OCS.IDO enables an NCL procedure to test the ID of the second OCS window to
determine if it is operational. &SYS.OCS.ID and &SYS.OCS.IDO are normally used
together to determine what ID should be set for a particular window.
&SYS.OCS.ID
&SYS.OCS.IDO
Considerations
&SYS.OCS.ID and &SYS.OCS.IDO can be used in subsequent NCL procedures to
determine the path of execution, depending upon the ID under which execution is
taking place.
For a description of the OCSID command, refer to the NonStop NET/MASTER MS
Command Reference Manual.
Example
In the following example, the procedure APROC sets the OCS window identifier of the
first OCS window you enter to ONE, and the OCS window identifier of the second (or
background) OCS window you enter to TWO. It uses the NCL core statement CMD to
issue the NonStop NET/MASTER MS command OCSID to set these values:
APROC: PROCEDURE
IF &SYS.OCS.IDO \= "ONE" THEN
CMD "-OCSID ONE"
ELSE
CMD "-OCSID TWO"
END APROC