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

Components in Mapping Services Processing
Working With Mapping Services
10–4 106160 Tandem Computers Incorporated
3. Type the second NCL procedure as shown, calling it ZEX1002N:
zex1002n: PROCEDURE
/* Sends a single message to an OCS window */
WRITE COLOR=WHITE,
MON=YES,
NRD=OPER,
DATA=TEST An OPER NRD message
END zex1002n
4. Execute ZEX1002N from the OCS command input line by using the following
command:
START ZEX1002N
5. Observe the results of installing ZEX1001N as your active MSGPROC procedure
and executing ZEX1002N, as shown in the following screen:
(06:39) --------------------- OPERATOR CONTROL SERVICES ----------------------
PROFILE MSGPROC=ZEX1001N <-- 1
NNM0393 MSGPROC PROCESSING ACTIVATED <-- 2
NNM0357 PROFILE HAS CHANGED <-- 3
START ZEX1002N <-- 4
TEST An OPER NRD message <-- 5
&$MSG.TEXT is TEST An OPER NRD message <-- 6
&$MSG.MSGATTR.DISPLAY.COLOR is WHITE <-- 7
&$MSG.MSGATTR.DISPLAY.HLITE is NONE <-- 8
&$MSG.MSGATTR.DISPLAY.INTENS is NORMAL <-- 9
&$MSG.MSGATTR.ALARM is 0 <-- 10
&$MSG.MSGATTR.FLAGS.NRD is 1 <-- 11
&$MSG.DOMID is <-- 12
&$MSG.SOURCE.TIME is 1992/06/15 06:39:09.388 <-- 13
&$MSG.SOURCE.USER is NMTJN <-- 14
Word 1 of text is TEST <-- 15
Word 2 of text is An <-- 16
Word 3 of text is OPER <-- 17
Word 4 of text is NRD <-- 18
Word 5 of text is message <-- 19
NNM1005 START ZEX1002N PROCESSING COMPLETE. NCLID 001005
---------- ------------------ NonStop NET/MASTER D30 ---------------- --------
M=>
In the following discussion, line numbers refer to the numbers at the right of the
preceding screen:
Line 1 shows the PROFILE MSGPROC command.
Lines 2 and 3 show the result of executing the PROFILE MSGPROC command.
Line 4 shows the START command.
The ZEX1001N NCL procedure uses the MSGREAD verb to read the message sent
by the ZEX1002N NCL procedure. Line 5 shows the result of displaying the
message text on the OCS window.
When the MSGREAD verb reads a message, it automatically places the text and
the attributes of the text into an MDO variable beginning with the stem &$MSG..