COBOL Manual for TNS and TNS/R Programs

Data Division
HP COBOL Manual for TNS and TNS/R Programs522555-006
7-14
File Description Entries
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.
Usage Considerations:
Referencing Global Items
A statement in a program contained directly or indirectly within a program that
describes a global name can reference that name without describing it again.
Subordinates of Global Names Are Global Names
A file name described using a GLOBAL clause is a global name. All data-names
subordinate to a global name are global names. All condition-names associated
with a global name are global names.
SAME RECORD AREA Clause
If the SAME RECORD AREA clause is specified for several files, the record
description entries or the file description entries for these files must not include the
GLOBAL clause.
GLOBAL
IS
VST076.vsd