NET/MASTER Network Control Language (NCL) Reference Manual
#ALIAS
Panel Control Statements
106126 Tandem Computers Incorporated 6–7
An NCL procedure that uses this panel, and accepts input from it, is shown next:
PSLP: PROCEDURE
ON panel_error do
say “&sys.retcode = “ &sys.retcode
say “&sysmsg = “ &sysmsg
END
INTCMD “SYSPARMS SPINPHIC=YELLOW”; INTREAD; INTCONT
&alternatename1=The name of the chief executive officer
&alternatename2=The assistant to the chief executive officer
&alternatename3=The secretary to the CEO
&alternatename4=Please give your authority code
&name=Another input field name to be replaced
PANEL pnl2
SAY “first = “ &alternatename1
SAY “second = “&alternatename2
SAY “third = “ &alternatename3
SAY “fourth = “&alternatename4
SAY “&name = “&name
PANELEND
END PSLP
This NCL procedure changes the color of input fields from its default of white to
yellow by using the appropriate SYSPARMS command, and displays the panel
defined earlier. Finally, the PSLP NCL procedure displays the contents of the
variables
&alternatename1
,
&alternatename2
,
&alternatename3
,
&alternatename4
, and
&name
. They contain whatever data has been typed into
the input fields of the panel.
The command to execute this NCL procedure, followed by the resulting partially
displayed panel, is shown next:
START PSLP
PANEL PNL2 - Enter data by overwriting the following description fields
The name of the chief executive officer
The assistant to the chief executive officer
The secretary to the CEO
Please give your authority code
Another input field to be replaced