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-66
RESET Statement
SHADOWED
selects from the screen-identifier list only those fields that have
SHADOWED items in which the SELECT bit is set; fields that do not have
SHADOWED items are not selected.
When the RESET statement is executed, the attributes and data of the selected fields are
reset to their initial values.
RESET does not cause a physical write to the screen but causes data to be written to the
terminal buffer. A physical write to the screen occurs when one of the following events
occurs:
•
TERMBUF fills up
•
Execution of one of the following statements:
ACCEPT
BEGIN-TRANSACTION
END-TRANSACTION
RESTART-TRANSACTION
ABORT-TRANSACTION
CALL
CHECKPOINT
DELAY
EXIT PROGRAM
PRINT SCREEN
SEND
•
Execution of DISPLAY for a conversational terminal
The DEPENDING ON clause for the RESET statement is analogous to the
DEPENDING ON clause for the PERFORM ONE statement. The following example
illustrates this.
WORKING-STORAGE SECTION.
:
77 ws-screen-status PIC 9(4) COMP VALUE 1.
01 ws-table.
05 ws-table-item PIC X(10)
OCCURS 4 TIMES.
SCREEN SECTION.
:
01 MENU1 SIZE 24, 80.
05 screen-table at 3, 4
PIC X(10)
OCCURS ON 4 LINES SKIPPING 1
VALUE "0000000000"
USING ws-table-item.
PROCEDURE DIVISION.
:
Note. If neither the DEPENDING ON modifier nor the SHADOWED modifier is specified, all
fields in the screen-identifier list are selected.