NET/MASTER Network Control Language (NCL) Reference Manual

WRITE
Verbs
106126 Tandem Computers Incorporated 3–231
The following example specifies that you want the text “ring” to be written to your
OCS window. The message is written in red with reverse highlighting. The terminal
alarm rings when the message is received. The message is also logged to NonStop
NET/MASTER MS activity log:
WRITE ALARM=YES LOG=YES COLOR=RED HLITE=REVERSE DATA=ring
The following example sends an MDO mapped by the map $MSG, and also specifies
the DATA operand to send some text. The process receiving the MDO must use the
appropriate form of the ASSIGN verb to analyze the MDO’s content:
ASSIGN MDO=&USERMDO. MAP=$MSG
&USERMDO.TEXT= X Y Z
WRITE NCLID=&NCLID MDO=&USERMDO. DATA=A B C
The following example shows how to write to another NCL process. The statement
writes an EMS message to the response queue of an NCL process. The variable
&pathname contains the NCL ID of the process being written to. The process receiving
the MDO (&$EMS.) must use the appropriate form of the ASSIGN verb to analyze the
MDO’s content:
WRITE NCLID=&PATHNAME DATA=&$EMS.
For more information on MDOs and Mapping Services refer to the NonStop
NET/MASTER NCL Programmer's Guide.