Purpose of global blocks

The GLOBALS instruction can be used to declare variables, constants and types for the whole program.

Defining global elements shared by all modules of a program is an old programming concept. To increase code re-usability and readability, avoid global elements in your programs. Use modular concepts instead, by defining PUBLIC variables, constants and types in modules that will be imported into other modules with the IMPORT FGL instruction.