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

Writing a MSGPROC NCL Procedure
An NCL Tutorial
106160 Tandem Computers Incorporated 3–29
3. Create, test compile, correct, and execute the MSGPROC NCL procedure. Ensure
that you use the PROFILE MSGPROC command to execute MSGPROC because
NonStop NET/MASTER MS displays an error if you attempt to execute
MSGPROC using either the START or EXEC command.
Note You must use the PROFILE MSGPROC command because MSGPROC is part of your OCS profile. You
require an authority level of 2 or more, by default, to execute the PROFILE MSGPROC command.
4. Execute the MESSGEN NCL procedure again in the same window from which you
executed the MSGPROC NCL procedure. Carefully contrast the output now
displayed at your OCS window with the output displayed earlier before the
MSGPROC NCL procedure was installed.
5. Terminate execution of both the MSGPROC and MESSGEN NCL procedures by
exiting from OCS.
The MESSGEN NCL
Procedure
The first NCL procedure we will create generates messages that are sent to the OCS
window from which the procedure is executed. The name of the NCL procedure is
MESSGEN:
messgen: PROCEDURE
/* A message generator */
DO FOREVER
WRITE DATA=Message
WRITE DATA=Hello message
WRITE DATA=Hello message &SYS.USER.ID
DELAY 10
END
END messgen