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

Writing a Message to a Terminal
Interaction With Users and Terminals
13–6 106160 Tandem Computers Incorporated
The following screen shows the results of executing the procedure twice:
(06:50) --------------------- OPERATOR CONTROL SERVICES ----------------------
START ZEX1303N
Enter GO YES followed by a sentence, GO NO, or GO
|NM1060 PROCEDURE ZEX1303N NCLID 15 PAUSED
GO NO
Whole string is: NO
Word 1 is: NO
Rest is:
NNM1005 START ZEX1303N PROCESSING COMPLETE. NCLID 000015
START ZEX1303N
Enter GO YES followed by a sentence, GO NO, or GO
|NM1060 PROCEDURE ZEX1303N NCLID 16 PAUSED
GO YES This is a sentence
Whole string is: YES This is a sentence
Word 1 is: YES
Rest is: This is a sentence
Your sentence is This is a sentence
NNM1005 START ZEX1303N PROCESSING COMPLETE. NCLID 000016
_____________________________________________________________________________
---------- ------------------ NonStop NET/MASTER D30 ---------------- --------
M=>
The values entered are NO, followed by a null string; and YES, followed by “This is a
sentence.”
Writing a Message to a
Terminal
You can use both the WRITE verb and the SAY core statement from an NCL process to
display messages on a terminal. (The SAY core statement performs a subset of the
functions of the WRITE verb.)
The following example uses the WRITE verb to display a message on a terminal:
zex1304n: PROCEDURE
/* Writes a message */
&name1 = &1
&name2 = &2
WRITE ALARM=YES,
COLOR=PINK,
BKGCOLOR=WHITE,
HLITE=REVERSE,
NRD=OPER,
DATA=Message sent from &name1 &name2
END zex1304n
It requires you to enter your first name and last name (&1 and &2) as two parameters
after the START command. It sets some foreground and background colors, some
highlighting attributes, and specifies that the message is an NRD message with the
OPER attribute.