NET/MASTER Network Control Language (NCL) Reference Manual

&SYS.WINDOW.NUMBER
System Variables
5–108 106126 Tandem Computers Incorporated
&SYS.WINDOW.NUMBER
The &SYS.WINDOW.NUMBER system variable contains the identifier of the current
window. The current window (in whose NCL processing environment a process is
executing) is assigned either a 1 or a 2 to differentiate the primary window from the
second window.
&SYS.WINDOW.NUMBER
Consideration
If referred to in a background environment, &SYS.WINDOW.NUMBER is 0 (zero).
Example
The following example shows how you might use this system variable:
IF &SYS.WINDOW.NUMBER = 2 THEN
SAY "WE HAVE AN ALTERNATE"
&SYS.WINDOW.OCS The &SYS.WINDOW.OCS system variable indicates whether the NCL processing
environment is associated with an OCS window or a virtual user. This system variable
contains 1 if the NCL process is associated with an OCS window. It contains 0 (zero) if
a virtual user owns the NCL process.
&SYS.WINDOW.OCS
Consideration
If referred to in a background environment, &SYS.WINDOW.OCS is 0 (zero).
Example
The following example shows how you might use this system variable:
IF &SYS.WINDOW.OCS = 1 THEN
SAY "This procedure is run from OCS"