NET/MASTER Network Control Language (NCL) Reference Manual
&SYS.PANEL.FLD
System Variables
106126 Tandem Computers Incorporated 5–75
&SYS.PANEL.FLD The &SYS.PANEL.FLD system variable contains the name of the variable associated
with the field in error. It is set to the null value if no error was detected by internal
validation.
&SYS.PANEL.FLD
Considerations
The setting of this variable by NCL can occur when a panel is displayed and there
is subsequent incorrect data entry by the operator. &SYS.PANEL.FLD is set by
panel services as a result of an internal validation error.
You can explicitly assign a value to this system variable by identifying a particular
field on a panel as an error. This can be done as follows:
Specify
varname
as &SYS.PANEL.FLD in the #OPT ERRFLD option.
Assign &SYS.PANEL.FLD to the variable name (without the preceding
ampersand) of the field which you wish to identify as an error.
See the #ERR statement and the #OPT ERRFLD option in Section 6, “Panel Control
Statements.”
See also the CONTROL PANELRC and CONTROL NOPANELRC verbs in
Section 3, “Verbs.”
For further information on the handling of panel errors, refer to the NonStop
NET/MASTER NCL Programmer’s Guide.
Example
In the following example, the procedure PANPROC displays the variable name of the
field in error after data is entered:
PANPROC: PROCEDURE
/* assumed panel verb to display an existing panel */
IF &SYS.PANEL.FLD =‘‘ THEN
SAY "NO FIELDS IN ERROR"
ELSE
SAY " THE FIELD IN ERROR IS " &SYS.PANEL.FLD
END PANPROC