NET/MASTER Network Control Language (NCL) Reference Manual
&SYS.NCL.ENV
System Variables
106126 Tandem Computers Incorporated 5–59
&SYS.NCL.ENV The &SYS.NCL.ENV system variable contains the environment in which the NCL
process is executing.
&SYS.NCL.ENV
Considerations
Possible values for &SYS.NCL.ENV are:
BLOG The NCL process is executing in the background logger (LOGP)
environment.
BMON The NCL process is executing in the background monitor (BMON)
environment.
BSYS The NCL process is executing in the background system (BSYS)
environment.
DPE The NCL process is executing in the dependent processing environment;
it was invoked using the NCL INTCMD verb.
EMSP The NCL process is executing in the EMSP processing environment.
LOGP The NCL process is executing in the LOGP processing environment.
OCS The NCL process is executing in an OCS primary processing
environment; it was invoked from the OCS command input line.
REM The NCL process is executing in the remote operator control (ROC)
environment.
TOP The NCL process is executing in the Top Level environment; it was
invoked from the main menu.
See also &SYS.NCL.TYPE, and &SYS.TERM.TYPE; these variables can also return
the environment in which an NCL process is executing.
Example
In the following example, the &SYS.NCL.ENV system variable is displayed and has
the value OCS, if the procedure is started from an OCS command input line:
PROC1: PROCEDURE
SAY "&SYS.NCL.ENV = " &SYS.NCL.ENV
END PROC1