NET/MASTER Network Control Language (NCL) Programmer's Guide
The Structure of Mapped Data Object (MDO) Variables
Working With Mapping Services
106160 Tandem Computers Incorporated 10–25
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:
(07:06) --------------------- OPERATOR CONTROL SERVICES ----------------------
PROFILE MSGPROC=ZEX1009N
NNM0393 MSGPROC PROCESSING ACTIVATED
NNM0357 PROFILE HAS CHANGED
START ZEX1002N
TEST An OPER NRD
message
&$MSG.TEXT is TEST An OPER NRD message
&$MSG.MSGATTR.DISPLAY.COLOR is WHITE
&$MSG.MSGATTR.DISPLAY.HLITE is NONE
&$MSG.MSGATTR.DISPLAY.INTENS is NORMAL
&$MSG.MSGATTR.FLD{1}.OFFSET is 8
&$MSG.MSGATTR.FLD{1}.LENGTH is 8
&$MSG.MSGATTR.FLD{1}.COLOR is TURQUOISE
&$MSG.MSGATTR.FLD{1}.HLITE is BLINK
&$MSG.MSGATTR.FLD{1}.INTENS is HIGH
&$MSG.MSGATTR.FLD{2}.OFFSET is 17
&$MSG.MSGATTR.FLD{2}.LENGTH is 7
&$MSG.MSGATTR.FLD{2}.COLOR is BLUE
&$MSG.MSGATTR.FLD{2}.HLITE is NONE
&$MSG.MSGATTR.FLD{2}.INTENS is NORMAL
&$MSG.MSGATTR.ALARM is 0
&$MSG.SOURCE.TIME is 1992/06/15 07:06:06.450
MSG QUEUED ------------------ NonStop NET/MASTER D30 ---------------- --------
M=>
The screen shows that the “OPER NRD” part of the text and the “message” part of the
text are displayed with attributes that are different from the base part of the text.
Enumerated Data Types It is useful to divide MDO variables into two types—those that store raw data only
and those that store raw data that represents a symbolic name. For convenience, the
former are called unenumerated MDO variables and the latter are called enumerated
MDO variables.
The ALARM field in a message profile variable stores raw data only—it is an
unenumerated MDO variable. To access the data in the ALARM field, use the
following MDO variable name:
&$MSG.MSGATTR.ALARM
The COLOR field in a message profile variable stores raw data that represents a
symbolic name—it is an enumerated MDO variable. In these variables, you can access
both the raw data that represents a symbolic name and the symbolic name itself in the
following way:
To obtain raw data, specify an MDO variable name with a number sign (#), for
example:
&$MSG.MSGATTR.DISPLAY.COLOR#