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

Development Considerations for System-Level NCL Procedures
Developing System-Level NCL Procedures
17–10 106160 Tandem Computers Incorporated
Passing on a System-Level Message
After reading a message using one of the EMSREAD, LOGREAD, or MSGREAD verbs,
you can use the EMSCONT, LOGCONT, and MSGCONT verbs, respectively, to pass
the message to its destination.
The available destinations depends on the verb that reads the message. The
EMSCONT verb can pass a message on to the local NonStop NET/MASTER MS
system only, to the specified domain(s), to the specified link(s), to Inter-System
Routing (ISR) for subsequent delivery, or to all destinations that can receive the
message. The LOGCONT verb can only pass a message on to the activity log. The
MSGCONT verb can only pass a message on to an OCS window.
These verbs can change attributes of a message, such as the text, color, intensity, and
highlighting of a message.
Hint To improve the performance of an NCL process, if an EMSCONT, LOGCONT, or MSGCONT verb does
not change message attributes, omit the verb altogether. The next EMSREAD, LOGREAD, or
MSGREAD verb performs an implicit EMSCONT, LOGCONT, or MSGCONT, respectively.
The following MSGPROC NCL procedure uses the MSGREAD verb and the ARGS
keyword to place every word of a message into a separate variable from &1 through
&n; it uses the MSGCONT verb to change the color of every message to blue:
zex1702n: PROCEDURE
/* MSGPROC to display text of message */
DO FOREVER
MSGREAD ARGS
SAY "Full text is "&$msg.text
DO &i = 1 TO &SYS.VARCNT
SAY "Word "&i" is "&&i
END
MSGCONT COLOR=BLUE
END
END zex1702n