Pathway/iTS SCREEN COBOL Reference Manual (H06.10+, J06.03+)

Procedure Division
HP NonStop Pathway/iTS SCREEN COBOL Reference Manual426750-003
6-92
RESET Statement
See the explanation of the error numbers contained in TERMINATION-STATUS
later in this section..
RESET Statement
The RESET statement restores the display attributes and the data of screen fields to
the compile-time definition. The statement restores only the terminal display, not the
internal data.
RESET cannot be used by programs communicating with intelligent devices.
TEMP or TEMPORARY
specifies that the selected fields are to be reset only if they have received their
current values or attributes from a DISPLAY TEMP or TURN TEMP 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.
RESET [ TEMP ] [ ATTR ] {
screen-identifier
} ,...
[ TEMPORARY ] [ DATA ]
[ DEPENDING [ ON ]
identifier
]
[ SHADOWED ]
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.