NET/MASTER Network Control Language (NCL) Reference Manual

#TRAILER
Panel Control Statements
106126 Tandem Computers Incorporated 6–35
If you want the trailer lines to be preparsed, you must precede the trailer lines
with the PREPARSE operand.
For further information on the #TRAILER panel control statement, refer to the
NonStop NET/MASTER NCL Programmer’s Guide. It contains many examples of
panel description files and displays. This guide also discusses the differences
between asynchronous and synchronous panel types.
See the PANEL verb in Section 3, “Verbs,” for a table that summarizes return code
values when displaying panels. For a detailed discussion of these codes (returned
in the &SYS.RETCODE system variable), refer to the NonStop NET/MASTER NCL
Programmer’s Guide.
Examples
The following example shows a panel containing trailer lines. POSITION is equated to
a variable &
disp
that contains YES, and so the trailer lines are displayed. The name
of this panel is COPY1:
#NOTE THIS IS A TEST PANEL CALLED COPY1
#FLD ~ TYPE=OUTPUT INTENS=HIGH JUST=CENTER COLOR=RED PAD=-
#NOTE % High-intensity (output)
#NOTE + Low-intensity (output)
#NOTE _ High-intensity (input)
#TRAILER START POSITION=&DISP
%this is the first trailer line in lower case and high intensity
~here is a centered line padded with dashes and in red
%this is the third trailer line, as in the first line, the default color is white
+THIS IS THE LAST TRAILER LINE IN UPPER CASE AND LOW INTENSITY
#TRAILER END
% TEST PANEL FOR SHOWING TRAILER LINES COPY1
+enter some data _inpt +
An NCL procedure that displays the preceding panel is listed next:
DISP1: PROCEDURE
ON panel_error do
say “&sys.retcode = “ &sys.retcode
say “&sysmsg = “ &sysmsg
END
&disp=yes
PANEL COPY1
SAY “&inpt = “&inpt
PANELEND
END DISP1
The command to execute the NCL procedure is:
START DISP1