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–9
Section 10, “Working With Mapping Services,” for a detailed discussion of MDO
variables.
When one of these verbs reads a message, it has the option of placing the text (but not
the attributes of the message) into ordinary variables using keywords such as ARGS,
VARS, RANGE, SEGMENT, and PARSE. Refer to the discussion on verb syntax and
variable access methods in the NonStop NET/MASTER NCL Reference Manual for more
information about these keywords.
Note The system variable &SYS.LOOPCTL is set to 1000 each time the EMSREAD, LOGREAD, or MSGREAD
verb is executed (unless it is explicitly set to 0 or to a number greater than 1000 by the NCL process).
The following MSGPROC NCL procedure uses the MSGREAD verb and the ARGS
keyword to place every word of a message into a separate variable from &1 through
&n:
zex1701n: PROCEDURE
/* MSGPROC to display text of message */
DO FOREVER
MSGREAD ARGS
SAY "Full text is "&$msg.text
DO &i = 1 TO &SYS.VARCNT
SAY "Word "&i" is "&&i
END
MSGCONT
END
END zex1701n
The following screen shows the results of executing the procedure:
(13:54) --------------------- OPERATOR CONTROL SERVICES ----------------------
PROFILE MSGPROC=ZEX1701N
NNM0393 MSGPROC PROCESSING ACTIVATED
NNM0357 PROFILE HAS CHANGED
Full text is NNM0393 MSGPROC PROCESSING ACTIVATED
Word 1 is NNM0393
Word 2 is MSGPROC
Word 3 is PROCESSING
Word 4 is ACTIVATED
Full text is NNM0357 PROFILE HAS CHANGED
Word 1 is NNM0357
Word 2 is PROFILE
Word 3 is HAS
Word 4 is CHANGED
_____________________________________________________________________________
---------- ------------------ NonStop NET/MASTER D30 ---------------- --------
M=>