Specifications

Chapter 14. Statement Reference
232
Syntax:
GLOBAL varname [,varname...]
Parameter:
varname
numericvariable [(subscript)]
stringvariable [(subscript)[stringlength]]
subscript
For one-dimensional: integerconstant
For two-dimensional: integerconstant, integerconstant
Where integerconstant is a numeric expression which returns a value
from 0 to 254.
stringlength
An integer constant from 1 to 255.
Description:
GLOBAL allows variables declared by varname to be referred to or updated in
other programs.
If a same variable name as specified inside the
GLOBAL statement is already
declared in your file, the
GLOBAL statement will result in an error.
Up to 30 variables can be declared inside one
GLOBAL statement.
You may declare non-array variables and array variables together inside one
GLOBAL statement.
Declarative statement
GLOBAL
Declares one or more work variables or register variables defined in a file,
to be global.