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-104
TURN Statement
Table 6-7 shows the criteria for determining the selection of a screen field in a TURN
operation.
TURN 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
•
One of the following statements is executed: ACCEPT; BEGIN-TRANSACTION,
END-TRANSACTION, RESTART-TRANSACTION, or ABORT-TRANSACTION;
CALL; CHECKPOINT; DELAY; EXIT PROGRAM; PRINT SCREEN; or
SEND
•
The DISPLAY statement is executed for a conversational terminal
The DEPENDING ON clause for the TURN 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-fld1 PIC x(10).
01 ws-fld2 PIC x(10).
01 ws-fld3 PIC x(10).
SCREEN SECTION.
:
01 MENU1 SIZE 24, 80.
05 screen-fld1 at 4, 20
PIC X(10)
from fld1.
05 screen-fld2 at 5, 40
PIC X(10)
from fld2.
05 screen-fld3 at 6, 60
PIC X(10)
from fld3.
Table 6-7. Screen Field Selection Criteria in TURN Operation
DYNAMIC SHADOWED Selected Not Selected Selected
Screen Fields With These Characteristics Are…
TURN Operation
Specifiers
SHADOWED:
YES, SELECT=1
SHADOWED:
YES, SELECT=0
SHADOWED:
NO
mnemonic-name Selected Selected Selected
mnemonic-name
SHADOWED
Selected Not selected Selected
DYNAMIC Selected Selected Selected