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–55
The following WRITE verb sends an enclosed MDO variable mapped by the map
$NCL, but does not specify the DATA operand and sends no text:
…
&1 = x
&2 = y
&3 = z
ASSIGN MDO=&usermdo. MAP=$NCL FROM ARGS
WRITE NCLID=&nclid MDO=&usermdo.
…
The following WRITE verb sends an enclosed MDO variable mapped by the map
$MSG, and also specifies the DATA operand to send text:
…
ASSIGN MDO=&usermdo. MAP=$MSG
&usermdo.text = x y z
WRITE NCLID=&nclid MDO=&usermdo. DATA=a b c
…
The following WRITE verb sends an enclosed MDO variable mapped by the map
$MSG, but does not specify the DATA operand and sends no text:
…
ASSIGN MDO=&usermdo. MAP=$MSG
&usermdo.text = x y z
WRITE NCLID=&nclid MDO=&usermdo.
…
The following example uses the INTREAD verb to read a message, and then
immediately sends the message as an enclosed MDO variable to the NCL process with
the NCL ID of 1234:
…
INTREAD
WRITE NCLID=1234 MDO=&$INT. DATA=&$INT.TEXT
…
The WRITE verb in this example sends the text in &$INT.TEXT in two locations: in the
enclosed MDO variable, &$INT., and as text specified by the DATA operand. Sending
text in this way means that you do not have to extract the text from the enclosed MDO
variable when the message is read by an EMSREAD, INTREAD, or MSGREAD verb.