NET/MASTER Network Control Language (NCL) Programmer's Guide
Sending a Message Between NCL Processes Using the WRITE Verb
Environments and Command Processing
16–50 106160 Tandem Computers Incorporated
5. Observe the results of installing ZEX1620N as your active MSGPROC procedure
and executing ZEX1621N, as shown in the following screen:
(15:10) --------------------- 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 ZEX1621N
This message does not have a USERMDO
a b c
This message does not have a USERMDO
NNM1005 START ZEX1621N PROCESSING COMPLETE. NCLID 002559
This message does not have a USERMDO
_____________________________________________________________________________
---------- ------------------ NonStop NET/MASTER D30 ---------------- --------
M=>
Sending Ordinary Variables You can send ordinary variables between NCL processes by using the ARGS or VARS
operand of the WRITE verb (with or without additional text).
When an INTREAD verb reads a message, the specified text is placed in the
&$INT.TEXT MDO variable. If the DATA operand is not used or specifies a null
value, the value of &$INT.TEXT is null. The ordinary variables, which are mapped by
the $NCL map, are placed in the &$INT.USERMDO MDO variable. The name of the
map ($NCL) is placed in the &$INT.MAPNAME MDO variable.
The following WRITE verb sends ordinary variables, and also specifies the DATA
operand to send text:
…
&1 = x
&2 = y
&3 = z
WRITE NCLID=&nclid ARGS DATA=a b c
…
The preceding code segment has the same result as the following code segment:
…
&1 = x
&2 = y
&3 = z
ASSIGN MDO=&usermdo. MAP=$NCL FROM ARGS
WRITE NCLID=&nclid MDO=&usermdo. DATA=a b c
…