NET/MASTER Network Control Language (NCL) Reference Manual

CMD
Core Statements
106126 Tandem Computers Incorporated 2–9
For a discussion of NCL execution environments, refer to the NonStop
NET/MASTER NCL Programmer's Guide.
See also the following verbs in Section 3, “Verbs”: CONTROL, INTCLEAR,
INTCMD, INTCONT, and INTREAD. The CMDSEP operand of the CONTROL
verb allows you to initiate multiple commands, which are separated by
semicolons, as shown in the second example later in this description. INTCMD
issues commands in the dependent processing environment. The other verbs
listed are used for processing the results of the commands that you initiate in the
dependent processing environment.
Examples
The following example initiates two versions of the SHOW USERS command:
CMD_SHOW: PROCEDURE
CMD "SHOW USERS"
/* SOME NCL STATEMENTS */
&OPTION = USERS
CMD SHOW &OPTION
END CMD_SHOW
The following example initiates the commands K and SH PARAM.
K clears the screen of all roll-delete messages. SH PARAM displays a summary of the
NonStop NET/MASTER MS startup parameters. The commands are separated by
semicolons, and the execution of the commands is enabled by the CMDSEP operand of
the CONTROL verb:
CMD_SHOW: PROCEDURE
CONTROL CMDSEP
/* SOME NCL STATEMENTS */
&OPTION = "K;SH PARAM"
CMD &OPTION
END CMD_SHOW