NET/MASTER Network Control Language (NCL) Reference Manual

CMD
Core Statements
2–8 106126 Tandem Computers Incorporated
CMD The CMD core statement initiates a NonStop NET/MASTER MS command in the
current processing environment. The responses from the command are delivered to
the owner of the NCL process, not to the initiating process. There are two such owner
processing environments: primary and background.
In the primary environment, responses go to the OCS window. In the background
environment, responses go to all users profiled to receive a monitor-class message.
The following NonStop NET/MASTER MS commands cannot be initiated from an
NCL procedure using the CMD core statement:
! ? CS+ CS- FC HISTORY PARAM
CMD
expression
expression
specifies an expression that represents a character string. The resulting string is
passed to Command Services for processing.
Depending on the current setting of the NCL CONTROL CMDSEP verb, the string
can contain multiple commands, separated by semicolons. NonStop
NET/MASTER MS limits the total number of characters that can be sent to 32768.
Considerations
NonStop NET/MASTER MS command handling is asynchronous; when one
statement executes, there is no guarantee that a previously initiated command has
finished. If synchronicity is important, use the INTCMD verb instead of the core
statement CMD. INTCMD places any response to the NonStop NET/MASTER
MS command on the dependent response queue; such responses can then be
manipulated by such verbs as INTREAD, INTCONT, and INTCLEAR.
In some cases, NonStop NET/MASTER MS commands can continue running after
the issuing NCL procedure has stopped. For example, this happens if the CMD
statement initiates many NonStop NET/MASTER MS commands and they take
longer to finish than the initiating procedure.
You can suppress an echo of the command to both the NonStop NET/MASTER
MS activity log and to the owner of the environment, by preceding the command
by the hyphen (-) suppression character. If you use the CONTROL verb operand
NOCMD, only the echo of the command to the owner of the environment is
suppressed; the command is still echoed to the activity log.