Notes
This command is not valid on the QMF command line.
When accessing multiple variables with the GET GLOBAL command,
the following rules apply:
- Equal signs are optional between uservarname and varname.
- Commas are optional between sets of names.
- Delimiters between uservarname and varname must be one or more
blanks or an equal sign with or without blanks.
- Delimiters between sets of names (both uservarname and varname)
must be one or more blanks or a comma with or without blanks.
- There must be an even number of names in a set. If there is
an odd number of names, an error message is issued and no variables
are assigned a value.
The GET GLOBAL command does not have an associated command prompt panel.
Command prompting is not available for this command.
Although not required by QMF, it is recommended that uppercase
be used for all variable names.
Unless there is a synonym specified, QMF considers "get global" (in
lowercase) to be an error. For consistency across systems, specify
this and all other QMF commands in uppercase (whether in QMF or
REXX procedures or in the callable interface).
- In a QMF application written in REXX, this example assigns the
value of the QMF global variable DSQAITEM to the REXX variable ITEM:
ADDRESS QRW "GET GLOBAL (ITEM = DSQAITEM"
- In a QMF procedure written in REXX, this example assigns the
value of the QMF global variable DSQCIQMG to the REXX variable MSG:
"GET GLOBAL (MSG = DSQCIQMG"
