This statement defines action to be taken during error processing.
The #ERR statement is a panel control statement that determines the processing required when a panel is being redisplayed following an error condition.
An error condition can be detected either by Panel Services internal validation or by the processing NCL procedure. If detected by internal validation (and &CONTROL PANELRC is not in effect), error processing is automatically invoked by Panel Services. If detected by the processing NCL procedure, error processing is invoked in one of two ways:
Note: For information about using this technique, see the Network Control Language Programming Guide.
When #ERR processing is initiated, the cursor is positioned to the first field in error and the panel is redisplayed, applying the attributes defined on the #ERR statement to the fields in error. This technique provides the panel user with a simple means of drawing the terminal operator’s attention to the field in error. This is particularly effective on color terminals where the color of any field in error can be altered for the duration of the error, and reverts to normal when the error condition is rectified.
One or more #ERR statements can be defined in any order. However, as with #OPT, #FLD, and #NOTE statements, any #ERR statement must precede the start of the panel, which is determined by the first line that is not a control statement.
This statement has the following format:
#ERR [ INTENS={ HIGH | LOW } ]
[ { COLOR | COLOUR }={ BLUE | RED | PINK | GREEN |
TURQUOISE | YELLOW | WHITE | DEFAULT } ]
[ { HLIGHT | HLITE }={ USCORE | REVERSE | BLINK | NONE } ]
[ ALARM={ YES | NO } ]
Determines the intensity of the error field when displayed. The INTENS operand is ignored for terminals with extended color and highlighting when either the COLOR or HLIGHT operands are specified.
HIGH specifies that the field is displayed in double intensity.
LOW specifies that the field is displayed in low or standard intensity.
Determines the color of the field. It applies only to IBM terminals with seven-color support and Fujitsu terminals with three- or seven-color support.
The COLOR operand is ignored if the terminal does not support extended color. This enables COLOR to be specified on panels that are displayed on both color and non-color terminals. COLOR can be used in conjunction with the HLIGHT operand.
For Fujitsu terminals that support extended color data streams, but support only three colors, the following color relationships are used:
When GREEN is specified, it produces a result of GREEN on a Fujitsu three-color terminal.
When RED is specified, it produces a result of RED on a Fujitsu three-color terminal.
When PINK is specified, it produces a result of RED on a Fujitsu three-color terminal.
When BLUE is specified, it produces a result of GREEN on a Fujitsu three-color terminal.
When TURQUOISE is specified, it produces a result of GREEN on a Fujitsu three-color terminal.
When YELLOW is specified, it produces a result of WHITE on a Fujitsu three-color terminal.
When WHITE is specified, it produces a result of WHITE on a Fujitsu three-color terminal.
When DEFAULT is specified, it produces a result of GREEN on a Fujitsu three-color terminal.
Fujitsu seven-color terminals are treated the same as IBM seven-color terminals.
The DEFAULT keyword indicates that the color of the field is determined from the INTENS operand. This is particularly useful if you want to set the color from an NCL procedure (that is, COLOR=&COLOR is specified and the NCL procedure can set the &COLOR variable to DEFAULT).
Applies only to terminals with extended highlighting support, and determines the highlighting to be used for the field.
Because the HLIGHT operand is ignored if the terminal does not support extended highlighting, HLIGHT can be specified on panels that are displayed on terminals that do not support extended highlighting. HLIGHT can be used with the COLOR operand.
When NONE is specified, the HLIGHT operand is ignored and no extended highlighting is performed for this field.
Turns the terminal alarm on or off if the panel is displayed with an error condition. This works independently of the ALARM operand on the #OPT control statement.
Examples:
#ERR COLOR=RED HLIGHT=REVERSE ALARM=YES #ERR COLOR=YELLOW HLIGHT=BLINK INTENS=HIGH
Notes:
| Copyright © 2008 CA. All rights reserved. |
|