NET/MASTER Network Control Language (NCL) Programmer's Guide
Writing a MSGPROC NCL Procedure
An NCL Tutorial
3–34 106160 Tandem Computers Incorporated
Leave the message unchanged and forward it on using the MSGCONT verb. The
unchanged message is displayed at the OCS window.
The &WORD&(SYS.VARCNT) Complex, Nested Variable
The &WORD&(SYS.VARCNT) is a complex, nested variable. A complex variable is a
variable with more than one ampersand (&). A nested variable is a variable that
begins with an ampersand and an opening parenthesis and terminates with a closing
parenthesis (&, (, and )). This type of variable allows you to combine a simple
variable, &WORD, with a system variable, &SYS.VARCNT. The complex, nested
variable used in the MSGPROC NCL procedure is used to determine the value of the
last variable created by the VARS keyword.
MSGPROC and MESSGEN To see how the MSGPROC NCL procedure filters messages, with MSGPROC active
execute the MESSGEN NCL procedure again in the same window from which you
executed MSGPROC. Carefully contrast the output now displayed at your OCS
window with the output displayed earlier, before the MSGPROC NCL procedure was
installed.
The following screen shows the results of executing MESSGEN with MSGPROC
active:
(13:33) --------------------- OPERATOR CONTROL SERVICES ----------------------
PROFILE MSGPROC=MSGPROC
NNM0393 MSGPROC PROCESSING ACTIVATED
NNM0357 PROFILE HAS CHANGED
START MESSGEN
Message
Hello message NNMUSER
Message
Hello message NNMUSER
Message
Hello message NNMUSER
Message
Hello message NNMUSER
Message
Hello message NNMUSER
Message
Hello message NNMUSER
Message
Hello message NNMUSER
_____________________________________________________________________________
---------- ------------------ NonStop NET/MASTER D30 ---------------- --------
M=>
Note The screen uses bold italics to indicate a blue, blinking message.