NET/MASTER Network Control Language (NCL) Programmer's Guide
The Structure of Mapped Data Object (MDO) Variables
Working With Mapping Services
10–16 106160 Tandem Computers Incorporated
The following MSGPROC NCL procedure refers to an element in an MDO variable:
zex1007n: PROCEDURE
/* MSGPROC procedure to analyze elements */
DO FOREVER
MSGREAD VARS=&word*
IF &word1 = "TEST" THEN DO
SAY "&$MSG.MSGATTR is "&$msg.msgattr
SAY "&$MSG.MSGATTR. is "&$msg.msgattr.
MSGCONT
END
ELSE
MSGCONT
END
END zex1007n
After following the steps outlined earlier in this section to type this NCL procedure
and install it as your active MSGPROC procedure, execute the ZEX1002N NCL
procedure to send a message to your OCS window. The following screen shows the
results of executing ZEX1002N with MSGPROC active:
(06:58) --------------------- OPERATOR CONTROL SERVICES ----------------------
PROFILE MSGPROC=ZEX1007N
NNM0393 MSGPROC PROCESSING ACTIVATED
NNM0357 PROFILE HAS CHANGED
START ZEX1002N
TEST An OPER NRD message
&$MSG.MSGATTR is ... .. . .. ". . ..
&$MSG.MSGATTR. is ... .. . .. ". . ..
NNM1005 START ZEX1002N PROCESSING COMPLETE. NCLID 001021
_____________________________________________________________________________
---------- ------------------ NonStop NET/MASTER D30 ---------------- --------
M=>
The screen shows that the two MDO variables that refer to the value of the MSGATTR
element produce the same result.