You can use the GET GLOBAL command to access QMF global variables in your application. For languages other than REXX, QMF provides an extended syntax of the GET GLOBAL command.
>>-GET Global--(--| Variable definitions |--------------------->< Variable definitions |--number of varnames--,--varname lengths--,--varnames--,-------| |--value lengths--,--values--,--value type----------------------|
The parameters specified on the GET GLOBAL command define the storage that your application program uses to store the variable names and values returned by the GET GLOBAL command.
The length of the variable name should be equal to the actual length of the global variable name in your storage area. An 18-character area padded with trailing blanks is allowed.
Because QMF deletes trailing blanks, you should not specify trailing blanks in global variable names.
The following rules apply to the variable value: