GET GLOBAL (extended syntax)
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 for the GET GLOBAL command.
You can use the GET GLOBAL command to copy the value of a QMF global variable into an application-defined variable for use by the application. The parameters you specify on the GET GLOBAL command define the application variable.
- number of varnames
- The number of variables requested.
- varname lengths
- A list of lengths for each variable name specified.
The length of the variable name. An 18-character area padded with trailing blanks is allowed.
- varnames
- A list of names of the QMF variables.
Do not specify trailing blanks in global variable names; QMF deletes trailing blanks.
- value lengths
- A list of the lengths of the values of the variables.The following rules apply to the variable value:
- If the value length you supply is less than the value stored in QMF, QMF truncates on the right and returns a truncated value.
- If the value length you supply is greater than the value stored in QMF, QMF returns a value padded with trailing blanks.
- values
- A list of variable values.
- value type
- The data type of the storage area that contains the values; it must be either character or integer.