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

Sending a Message Between NCL Processes Using the WRITE Verb
Environments and Command Processing
106160 Tandem Computers Incorporated 16–51
The following WRITE verb sends ordinary variables, but does not specify the DATA
operand and sends no text:
&1 = x
&2 = y
&3 = z
WRITE NCLID=&nclid ARGS
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.
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=YES to
read the message:
WRITE Verb
INTREAD Verb
WRITE NCLID=&nclid
ARGS
DATA=a b c
WRITE NCLID=&nclid
ARGS
INTREAD
PARSE=YES
&$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=YES
ARGS
&$INT.TEXT=a b c
&1=x
&2=y
&3=z
&$INT.USERMDO=… x y z
&$INT.MAPNAME=$NCL
&$INT.TEXT=null
&1=x
&2=y
&3=z
&$INT.USERMDO=… x y z
&$INT.MAPNAME=$NCL
INTREAD
PARSE=YES
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