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–57
The following table shows the result of using the WRITE verb to send an enclosed
MDO variable by using the MDO 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
MDO=&usermdo.
DATA=a b c
WRITE NCLID=&nclid
MDO=&usermdo.
INTREAD
PARSE=NO
&$INT.TEXT=a b c
&$INT.USERMDO=&usermdo
&$INT.MAPNAME=varies
&$INT.TEXT=null
&$INT.USERMDO=&usermdo
&$INT.MAPNAME=varies
INTREAD
PARSE=NO
ARGS
&$INT.TEXT=a b c
&$INT.USERMDO=&usermdo
&$INT.MAPNAME=varies
Mapped by $NCL
&1=a b c
&2=null
&3=null
Mapped by another map
&1=a b c
&2=null
&3=null
&$INT.TEXT=null
&$INT.USERMDO=&usermdo
&$INT.MAPNAME=varies
Mapped by $NCL
&1=null
&2=null
&3=null
Mapped by another map
&1=null
&2=null
&3=null
INTREAD
PARSE=NO
MDO=&mdo.
&$INT.TEXT=a b c
&$INT.USERMDO=&usermdo
&$INT.MAPNAME=varies
&mdo.=&usermdo
&$INT.TEXT=null
&$INT.USERMDO=&usermdo
&$INT.MAPNAME=varies
&mdo.=&usermdo
Specifying Ordinary Variables When Reading a Message
The following NCL procedure uses the WRITE verb to send an MDO variable from
one NCL process to a target NCL process that specifies ordinary variables when
reading a message:
zex1619n: PROCEDURE
/* Sends an MDO variable to an NCL process */
/* Wait until ZEX1616N begins execution */
DO UNTIL &glblzex1616n \= ""
DELAY 1
END /*do*/
ASSIGN MDO=&usermdo. MAP=$MSG
&usermdo.text = x y z
WRITE COLOR=WHITE,
NRD=OPER,
NCLID=&glblzex1616n,
MDO=&usermdo.,
DATA=a b c
END zex1619n