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

Sending a Message Between NCL Processes Using the WRITE Verb
Environments and Command Processing
16–52 106160 Tandem Computers Incorporated
The following table shows the result of using the WRITE verb to send ordinary
variables by using the ARGS or VARS operand (with and without the DATA operand
to send text), and the result of using an INTREAD verb that specifies PARSE=NO to
read the message:
WRITE Verb
INTREAD Verb
WRITE NCLID=&nclid
ARGS
DATA=a b c
WRITE NCLID=&nclid
ARGS
INTREAD
PARSE=NO
&$INT.TEXT=a b c
&$INT.USERMDO=… x y z
&$INT.MAPNAME=$NCL
&$INT.TEXT=null
&$INT.USERMDO=… x y z
&$INT.MAPNAME=$NCL
INTREAD
PARSE=NO
ARGS
&$INT.TEXT=a b c
&1=a b c
&2=null
&3=null
&$INT.USERMDO=… x y z
&$INT.MAPNAME=$NCL
&$INT.TEXT=null
&1=null
&2=null
&3=null
&$INT.USERMDO=… x y z
&$INT.MAPNAME=$NCL
INTREAD
PARSE=NO
MDO=&mdo.
&$INT.TEXT=a b c
&$INT.USERMDO=… x y z
&$INT.MAPNAME=$NCL
&mdo.=x y z
&$INT.TEXT=null
&$INT.USERMDO=… x y z
&$INT.MAPNAME=$NCL
&mdo.=x y z
Specifying Ordinary Variables When Reading a Message
The following NCL procedure uses the WRITE verb to send ordinary variables from
one NCL process to a target NCL process that specifies ordinary variables when
reading a message:
zex1618n: PROCEDURE
/* Sends ordinary variables to an NCL process */
/* Wait until ZEX1616N begins execution */
DO UNTIL &glblzex1616n \= ""
DELAY 1
END /*do*/
&1 = x; &2 = y; &3 = z
WRITE COLOR=WHITE,
NRD=OPER,
NCLID=&glblzex1616n,
ARGS,
DATA=a b c
END zex1618n