NET/MASTER Network Control Language (NCL) Programmer's Guide

Entering NonStop NET/MASTER MS Commands From an NCL Process
Environments and Command Processing
16–20 106160 Tandem Computers Incorporated
Figure 16-8 shows how the CMD core statement works when it executes in the primary
processing environment associated with an OCS window.
Figure 16-8. Using CMD in the Primary Processing Environment Under OCS
START/EXEC
Primary Processing Environment Results
NCL Process
018
Command Processing
OCS Window
(Message Area)
==>
CMD NNM
Note Figure 16-8 shows the OCS command input line prompt (=>) because the primary processing
environment is the OCS primary processing environment.
Again, this shows that CMD, conceptually, executes NonStop NET/MASTER MS
commands on the same level as the NCL process that executes CMD.
The following NCL procedure uses the CMD core statement to execute a NonStop
NET/MASTER MS command:
zex1601n: PROCEDURE
/* Uses CMD to execute a command. The */
/* command is entered as a parameter. */
&command = &SYS.ALLPARMS
SAY The command you have entered is &command
CMD &command
END zex1601n
The command is entered as a parameter when the NCL procedure is executed and is
placed in the system variable &SYS.ALLPARMS.