NET/MASTER Network Control Language (NCL) Programmer's Guide
Entering NonStop NET/MASTER MS Commands From an NCL Process
Environments and Command Processing
16–18 106160 Tandem Computers Incorporated
Entering NonStop
NET/MASTER MS
Commands From an
NCL Process
If you want to enter a NonStop NET/MASTER MS command from an NCL process,
you must use either the CMD core statement or the INTCMD verb. The difference
between CMD and INTCMD lies in the environment to which each sends the NonStop
NET/MASTER MS command for execution. This in turn affects where the results of
the NonStop NET/MASTER MS command are returned, which determines whether
the NCL process that executes CMD or INTCMD receives the results.
This subsection explains how to enter NonStop NET/MASTER MS commands,
including the START and EXEC commands, from an NCL process, using the CMD
core statement and the INTCMD verb. It discusses command entry restrictions from
an NCL process.
Entering Commands Using
the CMD Core Statement
The CMD core statement sends the NonStop NET/MASTER MS command that
follows it for execution in the same environment in which the NCL process is
executing. From the point of view of the NCL process, this is the current execution
environment. The NonStop NET/MASTER MS command and the NCL process are
processed asynchronously.
The results are not returned to the NCL process that executes CMD: this NCL process
never receives the results. Where the results are returned, depends on the type of
current execution environment in which the NCL process is executing: for example, if
the NCL process is executing in a primary processing environment attached to an OCS
window, the results are sent to the OCS window.
The general syntax of the CMD core statement is:
CMD
nnm-command
nnm-command
specifies the name of a NonStop NET/MASTER MS command.