The PUT command assigns the value of a local REXX variable to a volatile status or GLV variable of the same name.
This command has the following format:
ADDRESS GLV '[SELECT vargroup] PUT varname . . .'
(Optional) Specifies the name of a variable group (vargroup) to which the specified variable (varname) belongs.
For more information, see the description of the SELECT command.
Specifies the name of a volatile status or GLV variable. You can specify one or more varname variable names.
Note: If you assign a value to a volatile variable, and a nonvolatile variable of the same name already exists, the nonvolatile variable will be erased.
Example:
Assume that the following PUT statement follows a REXX program that has just finished processing, and that the program has assigned values to the local SUBTOTAL and TOTAL variables. The statement shown below assigns those values to volatile variables of the same name in the variable group STATS_GROUP:
ADDRESS GLV 'SELECT STATS_GROUP PUT SUBTOTAL TOTAL'
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|