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

Data Division
HP NonStop Pathway/iTS SCREEN COBOL Reference Manual426750-003
5-55
Field-Characteristic Clauses
Effect of ESCAPE Clause
If the ESCAPE clause is run during the ACCEPT statement (for example, an abort
input is specified for a terminal operating in conversational mode), the settings for the
RETURN bit and the ENTER bit are undefined.
Using a SHADOWED Clause in DISPLAY Operations with DYNAMIC
Modifier
When a shadowed screen field has an associated Working-Storage item item with its
SELECT bit set to 1 and the DISPLAY DYNAMIC operation is used, the screen field
acquires its initial screen contents from its FROM or USING Working-Storage data
item. Otherwise, the initial screen contents are acquired from the compile-time literal
value or the default initial value. Table 5-7 shows the effect of using DYNAMIC with the
DISPLAY operation on screen field attributes.
Table 5-6. RETURN and ENTER Bit Values on Execution of an ACCEPT
Statement
Information Received From Screen Field RETURN * ENTER
Tabbed across (field contains nothing) 0 0
Contains fill characters or spaces 1 0
Contains normal data 1 1
Attribute MDTON when ACCEPT runs:
— Contains fill characters or spaces
— Normal data
1
1
0
1
* For a 6510 terminal, 1 is always stored in the RETURN bit.
Table 5-7. Effect of Shadowed Fields with DISPLAY Operation and
DYNAMIC Modifier
Screen Fields With These Characteristics Acquire Field
Values
From (Output) or USING (Input/Output) To (Input)
DISPLAY BASE
or DISPLAY
OVERLAY
Operation
SHADOWED:
YES,
SELECT=1
SHADOWED:
YES,
SELECT=0
SHADOWED:
NO
With DYNAMIC FROM or USING
Working-Storage
data item
Literal* Literal* Literal*
Without
DYNAMIC
Literal* Literal* Literal* Literal*
* indicates the compile-time literal or default initial value.