#ERR Control Statement-Define Action Taken During Error Processing.

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  } ]

Examples: #ERR Control Statement

#ERR COLOR=RED HLIGHT=REVERSE ALARM=YES
#ERR COLOR=YELLOW HLIGHT=BLINK INTENS=HIGH

Notes:


Copyright © 2010 CA. All rights reserved.