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

The Standard Map $SPI
Standard and User-Defined Maps
11–14 106160 Tandem Computers Incorporated
The following table shows enumerated and unenumerated values for some event
numbers and symbolic names defined by the Expand subsystem in a message that is
read by the MSGREAD verb:
Expand Event Number Value
MDO Variable Name
(&$MSG.SPI.TANDEM. begins all variable names.)
EXP0003 3
ZEXP_ENM_IO_BUS_ERR
ZEMS_TKN_EVENTNUMBER.# (unenumerated value)
ZEMS_TKN_EVENTNUMBER (enumerated value)
EXP0004 4
ZEXP_ENM_DEV_ERR
ZEMS_TKN_EVENTNUMBER.# (unenumerated value)
ZEMS_TKN_EVENTNUMBER (enumerated value)
EXP0006 6
ZEXP_ENM_DEV_UP
ZEMS_TKN_EVENTNUMBER.# (unenumerated value)
ZEMS_TKN_EVENTNUMBER (enumerated value)
EXP0007 7
ZEXP_ENM_DEV_DOWN
ZEMS_TKN_EVENTNUMBER.# (unenumerated value)
ZEMS_TKN_EVENTNUMBER (enumerated value)
Note Not all Tandem subsystems have enumerated event numbers. For this reason, unless you are certain
that a subsystem has enumerated event numbers, it is best to use the unenumerated form of an MDO
variable name. For example:
&$MSG.SPI.TANDEM.ZEMS_TKN_EVENTNUMBER.# = 9999
&abc = &$MSG.SPI.TANDEM.ZEMS_TKN_EVENTNUMBER.#
Refer to the Data Definition Language (DDL) Reference Manual for more information on defining tokens
and DDL data types.
SPI to MDO Conversion Rule 2f. Every EMS message has at least one subject. The token
ZEMS-TKN-SUBJECT-MARK marks each subject in a message. In an MDO variable,
the subject mark becomes the name of the subject token, including the occurrence
number since the message can have more than one subject.
You can obtain the name of the subject of a message using the following MDO
variable:
&$
xxx
.SPI.TANDEM.ZEMS_TKN_SUBJECT_MARK
The following example assigns the name of the subject of a message read by the
MSGREAD verb into the simple variable &A:
&a = &$MSG.SPI.TANDEM.ZEMS_TKN_SUBJECT_MARK
For example, the name of the subject of a message could be the following:
TANDEM.ZCOM_TKN_SUBJ_LINE{1}
You can obtain the value of the subject of a message two ways: in a single assignment
statement or using two assignment statements.
The first method, using a single assignment statement, uses a nested MDO variable.
The following example assigns the value of the subject of a message read by the
MSGREAD verb into the simple variable &B:
&b = &$MSG.SPI.&($MSG.SPI.TANDEM.ZEMS_TKN_SUBJECT_MARK)