global variable

A variable defined outside all program blocks and accessible within all program blocks of the program. The scope of a global variable is all statements that follow the global variable definition and all source modules which reference the global variables definition. In 4GL, global variables are defined within the GLOBALS statement either at the top of a source module (outside all program blocks), or in a separate source file.

See also declare, define, program block, scope of reference, source module, variable.