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

Entering NonStop NET/MASTER MS Commands From an NCL Process
Environments and Command Processing
106160 Tandem Computers Incorporated 16–23
The following screen shows the results of executing the procedure:
(11:11) --------------------- OPERATOR CONTROL SERVICES ----------------------
START ZEX1602N SHOW OCS
The command you have entered is SHOW OCS
NNM1005 START ZEX1602N PROCESSING COMPLETE. NCLID 000035
_____________________________________________________________________________
---------- ------------------ NonStop NET/MASTER D30 ---------------- --------
M=>
Since the SHOW OCS command is executed in the dependent processing environment
associated with the NCL process, the results are available to the NCL process.
However, since the NCL process terminates execution before reading the results with
INTREAD, the results are not sent to the OCS window for display.
The following NCL procedure uses the INTREAD verb to read each line of the results
of a command, and the INTCONT verb to send each line of the results to the next
higher processing environment:
zex1603n: PROCEDURE
/* Uses INTCMD to execute a command. The */
/* command is entered as a parameter. */
&command = &SYS.ALLPARMS
SAY The command you have entered is &command
INTCMD &command
DO UNTIL &msgno = NNM0999
INTREAD VARS=&msgno
INTCONT
END
END zex1603n