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

Procedure Division
HP NonStop Pathway/iTS SCREEN COBOL Reference Manual426750-003
6-136
TURN Statement
TEMP or TEMPORARY
indicates the fields are to be reset to their initial display attributes when the next
RESET TEMP or ACCEPT statement is executed.
mnemonic-name
specifies the display attributes to be used. The
mnemonic-name
must be
associated with one or more display attributes through an IS phrase in the
SPECIAL-NAMES paragraph in the Environment Division of the program.
DYNAMIC
indicates that the specified screen field can have its screen attributes constructed
from a combination of the screen field’s attributes as defined at compile time and
the attribute settings as defined in the control structure.
RECEIVE FROM
specifies the type of device from which data can be accepted for a screen field.
This clause is supported only for applications running on 6530 or 6540 terminals
with 6AI (revision A00 or later) firmware.
screen-identifier
specifies the fields whose attributes can be changed. Each identifier can be the
name of an entire screen, a screen group, or an elementary item of any base or
overlay screen that is currently displayed. If
screen-identifier
is not an
elementary item,
screen-identifier
refers to all subordinate elementary items
that have a TO, FROM, or USING clause in their definitions. There may be at
most 127 screen identifiers per TURN statement.
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.