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

Sending a Message to EMSPROC
Developing System-Level NCL Procedures
17–24 106160 Tandem Computers Incorporated
7. Execute the following commands to ensure that your OCS profile allows you to
receive EMS and unsolicited messages:
PROFILE EMS=YES UNSOL=YES MONMSG=YES
8. Execute ZEX1708N from the OCS command input line by using the following
command:
START ZEX1708N
9. Observe the results of installing ZEX1707N as your active MSGPROC procedure
and executing ZEX1708N, as shown in the following screen:
(14:41) --------------------- OPERATOR CONTROL SERVICES ----------------------
START ZEX1708N
Sending a message to EMSPROC
14:41:33 TEST This is the &ABC.TEXT text
&$MSG.TEXT is TEST This is the &ABC.TEXT text
&$MSG.SPI.TANDEM.ZEMS_TKN_EVENTNUMBER.# is 9999
Elements under &$MSG.SPI.TANDEM are
ZSPI_TKN_SSID is TANDEM.NNM.D30
ZEMS_TKN_SUBJECT_MARK is TANDEM.ZEMS_TKN_TEXT{1}
ZEMS_TKN_TEXT is TEST This is the &ABC.SPI.TANDEM.ZEMS_TKN_TEXT text
ZEMS_TKN_EVENTNUMBER is
NNM1005 START ZEX1708N PROCESSING COMPLETE. NCLID 000024
_____________________________________________________________________________
---------- ------------------ NonStop NET/MASTER D30 ---------------- --------
M=>
Since the EMSALERT verb sends a message directly to EMSPROC, no SPI tokens are
added to the message.
Sending a Message
Through the EMS Collector
A message sent using the EMSSEND verb, since it goes through the EMS event
collector, arrives at NonStop NET/MASTER MS with the addition of SPI tokens added
in the process of sending to the collector. When an event message arrives at NonStop
NET/MASTER MS, NonStop NET/MASTER MS creates two structures. It creates one
structure containing the text of the message that Mapping Services can interpret using
the map $MSG, and it creates another structure containing the NonStop
NET/MASTER MS equivalent of SPI tokens that Mapping Services can understand
using the map $SPI.
Both structures are present in the same MDO variable after it is created, but NonStop
NET/MASTER MS uses the map $MSG to interpret the text part of the MDO variable
and the map $SPI to interpret the SPI part of the MDO variable. See Section 11,
“Standard and User-Defined Maps,” for more information on the maps $MSG and
$SPI and the rules NonStop NET/MASTER MS uses to convert SPI tokens to their
NonStop NET/MASTER MS equivalent.