Pathway/iTS SCREEN COBOL Reference Manual (G06.24+, H06.03+, Pathway/iTS 1.0+)
Procedure Division
Compaq NonStop™ Pathway/iTS SCREEN COBOL Reference Manual—426750-001
6-65
RESET Statement
ATTR
resets the display attributes of the selected fields to the value specified in the screen
definition.
DATA
resets the characters displayed in the selected fields to the value specified in the
VALUE field-characteristic clause of the field. If a value is not specified, the
standard fill character fills the field.
If neither ATTR nor DATA is specified, both the attributes and data of the selected
fields are reset to initial values.
For a terminal operating in conversational mode, RESET DATA has no effect; you
can specify either RESET ATTR or RESET TEMP ATTR to reset the display
attributes of fields on conversational-mode terminals.
screen-identifier
specifies the fields to be reset; the maximum is 127 screen fields per RESET
statement. Each screen-identifier can name an entire screen, a screen group,
or an elementary item of any base or overlay screen that is currently displayed. If
screen-identifier is a group, all subordinate elementary items that have a
TO, FROM, or USING clause in their definitions are reset.
DEPENDING ON identifier
selects zero or one screen-identifier from the list. The statement whose
position in the screen-identifier list is the same as the value in
identifier is selected. If the value in identifier is less than 1 or greater
than the number of screen identifiers, no screen-identifier is selected.
Note. During execution of a SCREEN COBOL program, the TCP controls the MDTs (modified
data tag) in the same way it controls display attributes; with two important exceptions:
•
When a TURN TEMP statement selects an input field for changing display attributes, the
MDT bit is always set.
•
When a RESET TEMP statement selects an input field for resetting of attributes, the MDT
bit is set, regardless of the initial MDT attribute of the field.
These two exceptions apply only to the TURN and RESET statements that have the TEMP
modifier. Note also that the field’s MDT bit is not reset after the completion of the ACCEPT
statement. Once the MDT bit is set, it stays set until the next DISPLAY BASE, TURN, RESET,
or CLEAR INPUT operation.