Use this control statement to determine 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:
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.
Normally only one #ERR statement is defined. However, if required to accommodate the operands, multiple statements can be defined. They 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 control 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 operand is specified.
specifies that the field is displayed in double intensity.
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 datastreams, but support only three colors, the following color relationships are used:
|
Specified |
Result (on Fujitsu three-color terminal) |
|
GREEN |
GREEN |
|
RED |
RED |
|
PINK |
RED |
|
BLUE |
GREEN |
|
TURQUOISE |
GREEN |
|
YELLOW |
WHITE |
|
WHITE |
WHITE |
|
DEFAULT |
GREEN |
Fujitsu seven-color terminals are treated the same as IBM seven-color terminals.
The DEFAULT keyword indicates that the color of the field is to be 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.
The HLIGHT operand is ignored if the terminal does not support extended highlighting, so 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.
Determines if the terminal alarm is to be rung when the panel is displayed with an error condition. This works independently of the ALARM operand on the #OPT control statement.
Examples: #ERR Control Statement
#ERR COLOR=RED HLIGHT=REVERSE ALARM=YES #ERR COLOR=YELLOW HLIGHT=BLINK INTENS=HIGH
Notes: