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

Sending a Message to EMSPROC
Developing System-Level NCL Procedures
17–22 106160 Tandem Computers Incorporated
The second NCL is a MSGPROC procedure called ZEX1707N. It is designed to trap
messages that contain SPI tokens and have TEST in the message text, and to analyze
and display their contents.
The third NCL procedure is an NCL procedure called ZEX1708N. It uses the NCL
EMSALERT verb to send a message directly to EMSPROC.
To see how these NCL procedures work, follow these steps:
1. Type the first NCL procedure as shown, calling it ZEX1706N:
zex1706n: PROCEDURE
/* EMSPROC procedure */
SAY EMSPROC starting
DO FOREVER
EMSREAD
EMSCONT
END /*do*/
END zex1706n
2. Copy ZEX1706N to your customized distribution library.
3. Install ZEX1706N as your EMSPROC procedure using the following SYSPARMS
command from the OCS command input line:
SYSPARMS EMSPROC=ZEX1706N
Flushing your current EMSPROC procedure using the SYSPARMS
EMSPROC=FLUSH command achieves the same result since this allows all EMS
messages to pass through. You can use the SHOW SYSPARMS command or the
STATUS command to confirm that ZEX1706N is now your active EMSPROC
procedure.