Link to this page
Print this page
Parent topic
:
Advanced features
Advanced features
Globals
Global variables can be shared among all modules of a program.
Understanding global blocks
Global symbols can be defined with the GLOBALS instruction
GLOBALS
The GLOBALS / END GLOBALS block and the GLOBALS instruction.
Rules for globals usage
Follow the rules described in this topic in order to use globals properly.
Database schema in globals
Globals files can define the database schema to be used by the compiler to resolve
DEFINE ... LIKE
statements.
Content of a globals file
A globals file should only contain a
GLOBALS ... END GLOBALS
block.
Examples