NET/MASTER Network Control Language (NCL) Reference Manual

ASSIGN
Verbs
3–18 106126 Tandem Computers Incorporated
A variable retains the MODFLD attribute across many panel redisplays until it is
reset by the use of &SYS.PANEL.MODFLD system variable, ASSIGN
OPT=MODFLD, or a panel display that does not contain the variable. Null
variables may be flagged as ERROR or MODIFIED.
When using OPT=SETOUT to set output attributes for variables that are the subject
of input field characters, CAPS, MODFLD, and ERRFLD processing is not done;
also, NCL does not supply any fill characters.
When using OPT=SETOUT, if the terminal that displays the panel does not support
extended highlighting, the field pad character is checked against the standard
input field pad character instead of being checked against the highlighting
attribute. This is done to determine whether remaining standard output field
attributes should be applied.
See PANEL and CONTROL (RNGLIM/NORNGLIM operands) in this section.
See also Section 6, “Panel Control Statements.” These statements contain a
description of the error and modified field attributes. This section also contains a
summary of the standard input and output field attributes, such as color, padding,
and highlighting. Section 6 also describes the #OPT panel control statement,
which allows preparsing of the panel definition file so that field attributes can be
changed just before the panel is displayed. By using the OPT=SETOUT operand
of the ASSIGN verb, you can more efficiently change field attributes.
See also the system variables that begin with &SYS.PANEL, such as
&SYS.PANEL.MODFLD, in Section 5, “System Variables.”
Examples
The following example shows the use of Format 3 of the ASSIGN verb in which
OPT=SETERR:
ASSIGN OPT=SETERR VARS=(&FLD1,&FLD10)
This example sets the ERROR flag on some variables.
The following example shows the use of Format 3 of the ASSIGN verb in which
OPT=RESETMOD:
ASSIGN OPT=RESETMOD VARS=&INP_FLD1
This example resets the modified field attribute on the panel input field variable
&INP_FLD1.
The following example shows the use of Format 3 of the ASSIGN verb in which
OPT=SETOUT:
ASSIGN OPT=SETOUT VARS=(&RES)
This example changes the input field with the variable name RES to an output field.