COBOL Manual for TNS and TNS/R Programs

Data Division
HP COBOL Manual for TNS and TNS/R Programs522555-006
7-13
File Description Entries
°
RECORD CONTAINS clause
If any of the file description entries includes a RECORD CONTAINS clause, all
of them must include a RECORD CONTAINS clause that specifies the same
record attributes (fixed-length or variable-length, fixed record size or minimum
and maximum record sizes, and the external data item that reflects the current
logical record size, if any).
°
LABEL RECORDS clause
If any of the file description entries includes a LABEL RECORDS clause with
the STANDARD phrase, all of them must include a LABEL RECORDS clause
with the STANDARD phrase.
°
LINAGE clause
If any of the file description entries includes a LINAGE clause, all of them must
include a LINAGE clause that specifies the same logical page attributes. In
particular, when the value of a data item supplies one of the attributes, the
same external data item must be specified for this purpose in each of the
clauses.
°
CODE-SET clause
If any of the file description entries includes a CODE-SET clause that
references an alphabet-name associated with a system-name, all of them must
include a CODE-SET clause that references an alphabet-name associated with
the same system-name.
Open Mode States
At the beginning of each execution of the run unit, the open mode state for each
external file connector is Closed and the status of all other dynamic file attributes is
undefined. If the open mode state of an external file connector is not Closed or
Locked when execution of the run unit terminates, it is closed by the execution of
an implicit CLOSE statement without any of the optional phrases.
Note. The 1985 COBOL standard classifies the LABEL RECORDS clause as
obsolete, so you are advised not to use it.