NET/MASTER Network Control Language (NCL) Reference Manual

INTCMD
Verbs
106126 Tandem Computers Incorporated 3–105
INTCMD The INTCMD verb executes a command in the dependent processing environment of
an NCL process. The results of the command or procedure are queued to the
dependent response queue. The results can then be analyzed. Every NCL process can
have a dependent processing environment associated with it.
For a full discussion of NCL environments, refer to the NonStop NET/MASTER NCL
Programmer's Guide.
The command invoked using the INTCMD verb executes independently of the
initiating procedure. Any dependent NCL process or command that might have been
started is automatically terminated if the initiating NCL process ends before the
dependent NCL process or command has completed. It is the user’s responsibility to
determine whether the command initiated by the INTCMD verb has completed. This
can be done by using the INTREAD verb in the initiating NCL process.
The use of quotes around the command text is required if the text contains any NCL
operators—as shown in the second example of this verb. This stops the text from
being used as an expression.
The following NonStop NET/MASTER MS commands cannot be entered from an
NCL procedure using the INTCMD verb:
AUTOHOLD CS+ HISTORY ORDER !
CLEAR EQUATE K PAGE ?
CS- FC NRDRET PARAM
INTCMD
command
command
represents a command to be run in the dependent environment of the current NCL
process. If such an environment does not currently exist, one is created.
Considerations
A command processed in a dependent processing environment is processed in the
normal manner. However, all responses resulting from the command are returned
to the originating process's dependent response queue and not to the user's
terminal. The issuing process may then use the INTREAD verb to retrieve the
queued responses, one by one. The procedure can correlate the results of
commands that it issues and can react intelligently to the results.
NCL procedures that are invoked with the INTCMD verb have their own
dependent processing environments. These procedures may therefore use the
INTCMD verb without restriction to execute their own commands and dependent
processes. If the highest-level NCL process terminates, all its dependent levels
terminate.