Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

GLOBAL clause

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

  1. The GLOBAL clause may only be specified in report description entries

General rules

  1. 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.

  2. 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").

  3. The LINE-COUNTER and PAGE-COUNTER special registers are also global.