NET/MASTER Network Control Language (NCL) Reference Manual

#OPT
Panel Control Statements
6–32 106126 Tandem Computers Incorporated
You can specify trailer lines on the screen by using the PREPARSE operand of the
#OPT panel statement. However, this is less efficient than using the #TRAILER
statement. See the #TRAILER panel control statement, later in this section. The
#TRAILER statement was designed to perform the task of automatically including
trailer lines on a screen.
See also the &SYS.INKEY and &SYS.NATIVE.INKEY system variables in
Section 5, “System Variables.” These variables identify the last function key used
in panel operations.
For further information on the #OPT 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 various uses of the #OPT panel statement:
#OPT DEFAULT=#$%
#OPT INWAIT=60 CURSOR=&CURSORFLD
#OPT CURSOR=IN1 ALARM=YES
#OPT ALARM=&ALARM PREPARSE=($,D)
#OPT ERRFLD=&INERROR
#OPT INWAIT=.5 UNLOCK=NO PREPARSE=($,S)
#OPT CURSOR=5,75
#OPT CURSOR=&ROW,&COLUMN FMTINPUT=&FMT
The following example shows a complete panel description file, an NCL procedure
that displays the panel, and the displayed panel. The panel description file called
PPSLP, is shown first:
#NOTE THIS PANEL IS CALLED "PPSLP"
#ERR ALARM=YES
#FLD ! TYPE=OUTPUT INTENS=HIGH
#OPT PREPARSE=($,S)
%PRESS ANY KEY TO CONTINUE: _INPUT
+
+&VBL1 +TEXT
+$VBL1 +TEXT