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

Sending a Message to an NCL Process When it Is Started
Environments and Command Processing
106160 Tandem Computers Incorporated 16–59
After following the steps outlined earlier in this section to install ZEX1620N as your
active MSGPROC procedure, execute ZEX1623N to send a message to your OCS
window. The following screen shows the results of executing the procedure:
(15:13) --------------------- OPERATOR CONTROL SERVICES ----------------------
PROFILE MSGPROC=ZEX1620N
NNM0393 MSGPROC PROCESSING ACTIVATED
NNM0357 PROFILE HAS CHANGED
This message does not have a USERMDO
This message does not have a USERMDO
START ZEX1623N
This message does not have a USERMDO
a b c
This message has a USERMDO mapped by $MSG
&MDO.TEXT = x y z
&1 is x
&2 is y
&3 is z
NNM1005 START ZEX1623N PROCESSING COMPLETE. NCLID 002567
This message does not have a USERMDO
_____________________________________________________________________________
---------- ------------------ NonStop NET/MASTER D30 ---------------- --------
M=>
Sending a Message to
an NCL Process When
it Is Started
In addition to the START command, you can also use the START verb to invoke an
NCL procedure for asynchronous execution. Unlike the START command, the START
verb can be executed only from an NCL process, not from a command input line. The
START verb offers more flexibility than the START command when invoking an NCL
procedure. The START verb is particularly well suited for use in NCL processes that
control the automation of operations tasks.
Specifying Variables When an NCL process is started, the START verb can send a message. It can send the
message in one or more ordinary variables, specified by using the ARGS or VARS
operand, or in an MDO variable, which can be mapped by any map. If an MDO
variable is sent, the entire contents, including the map header and the data, is placed in
the &$PRM. MDO variable in the started NCL process. Additionally, the map used to
send the message must be used to interpret the message. See Section 10, “Working
With Mapping Services,” for a description of MDO variables and maps.
For example, when an EMSPROC NCL procedure reads a message, the message is
placed in the &$EMS. MDO variable, which is mapped by the map $MSG. The START
verb can send this message directly to a started NCL process. In the started NCL
process, the same message is placed in the &$PRM. MDO variable, which is also
mapped by the map $MSG.