Function
The GLOBAL clause can only be used within a nested program. It defines a report-name as global. A global name can be accessed by the program defining it and by any other program contained directly or indirectly in this program.
Format
IS
GLOBAL
Formats for the file description entry can be found under the FILE SECTION.
Syntax rule
The GLOBAL clause may only be specified in report description entries
General rules
A report-name whose description contains a GLOBAL clause is a global name. All data-names that are subordinate to and associated with a global name a global name are global names.
Any program contained in the program that describes the global name may access a global name. The global name does not need to be described again in the program that references it. In the case of references to identical names, the local names have priority (see section "Local and global names").
The LINE-COUNTER and PAGE-COUNTER special registers are also global.