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

Development Considerations for System-Level NCL Procedures
Developing System-Level NCL Procedures
106160 Tandem Computers Incorporated 17–15
Using a Message Generator for Testing
When you are testing a system-level procedure, you may need to check that it detects
messages with specific attributes. To do so, you can use a message generator that
sends a message with the attributes you are testing.
The following NCL procedure sends 10 messages to the OCS window from which it is
executed; this allows you to test MSGPROC:
zex1705n: PROCEDURE
DO 10
SAY Message from &SYS.USER.ID
END /*do*/
END zex1705n
You can also use two verbs to send a message to EMSPROC for testing: EMSALERT
and EMSSEND. These verbs are discussed later in this section in “Sending a Message
to EMSPROC.”
Loading and Flushing EMSPROC
The SYSPARMS EMSPROC command can be used to either load or flush EMSPROC.
The following command loads an EMSPROC procedure called EPROC2:
SYSPARMS EMSPROC=EPROC2
The following command flushes EMSPROC:
SYSPARMS EMSPROC=FLUSH
These commands allow you to load and flush EMSPROC as required to test new and
modified versions.
Unloading EMSPROC From the Retain List. EMSPROC executes under the control of the
virtual user EMSP. Loading EMSPROC by using the SYSPARMS EMSPROC
command loads it and places it on a list called the active list.
If the value of the SYSPARMS NCLPRSHR system parameter is a number, then your
NonStop NET/MASTER MS system also maintains a list called the retain list. This list
keeps in memory NCL procedures that have been previously executed but are
currently not being executed.
If the value of the SYSPARMS NCLPRSHR system parameter is a number, then
flushing EMSPROC places it on the retain list in the region owned by EMSP. You can
determine whether EMSPROC is on this retain list by using the following command
(assuming PROFILE MONMSG=YES):
SUBMIT EMSP SHOW PRELOAD
If EMSPROC is on the retain list (after modifying EMSPROC and before loading a new
version of EMSPROC), you should execute the following command to remove it from
the list to ensure that you load the latest version:
SUBMIT EMSP SYSPARMS UNLOAD=
emsproc
,
ncl-library