Pathway/iTS SCREEN COBOL Reference Manual (G06.24+, H06.03+, Pathway/iTS 1.0+)

Data Division
Compaq NonStop™ Pathway/iTS SCREEN COBOL Reference Manual426750-001
5-67
Clauses in Message Description Entry
The TCP generates pad data if a field has not been entered, but needs to be physically
stored (shadow field = 4 or 5). The TCP generates pad data so that the application does
not reference previously stored data.
The pad data generated for the target Working-Storage data item is blank spaces for a
nonnumeric item and zeros (binary if COMP, otherwise ASCII) for a numeric item.
The TCP considers a field to be not entered and generates pad data when:
The message specifies that a field is conditionally present and the condition is not
met so that the TCP finds the field to be absent
The message specifies that field delimiters are enabled and optionally that message
delimiters are enabled. The TCP finds:
°
Two consecutive delimiters—two field delimiters or a field delimiter followed
by a message delimiter
°
A field delimiter as the last character of the message and the associated field is
the last field of the message
The selected state only has effect during output processing on a field. The selected state
provides you with the capability to override PRESENT IF processing on a field.
Overriding PRESENT IF processing will be the exception rather than the common
course of action. However, there might be instances where you need to output a given
field even if the PRESENT IF processing shows the field to be absent.
The selected state can assume the value of 1 or 0.
Selected state = 1—The TCP unconditionally outputs the field. The field is output
regardless of the result of any conditionally present processing on the field caused
by the PRESENT IF clause.
Selected state = 0—The result of the PRESENT IF processing on the field is a factor
in the decision to output that field.
Table 5-10
shows the logical relationship between the FIELD STATUS shadow data
item and PRESENT IF processing.
Table 5-9. FIELD STATUS Clause Shadow Values
Shadow Values With
Selected State of 0
Shadow Values With
Selected State of 1
State Input Output Input Output
Entered 2 N.A. 3 N.A.
Generated and Stored 4 N.A. 5 N.A.
Entered and Stored 6 N.A. 7 N.A.
Selected N.A. 0 N.A. 1