COBOL Manual for TNS/E Programs (H06.08+, J06.03+)
◦ BLOCK CONTAINS clause
If any of the file description entries includes a BLOCK CONTAINS clause, all of them
must include a BLOCK CONTAINS clause that specifies the same block size attribute.
◦ 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
NOTE: The 1985 COBOL standard classifies the LABEL RECORDS clause as obsolete,
so you are advised not to use it.
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.
GLOBAL Clause
The GLOBAL clause makes file-name a global name, meaning that it is available to every
program contained within the program that describes it. The contained programs do not contain
a description of the file. For an explanation of global names, see Global and Local Names
(page 52).
File Section 161










