GET GLOBAL

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.

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 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.

varnames
A list of names of the QMF variables.

Because QMF deletes trailing blanks, you should not specify trailing blanks in global variable names.

value lengths
A list of the lengths of the values of the variables.

The following rules apply to the variable value:

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.
[ Previous Page | Next Page | Contents | Index ]