Previous Topic: PUT CommandNext Topic: SELECT Command


PUTP Command

The PUTP command assigns the value of a local REXX variable to a nonvolatile status or GLV variable of the same name. This command updates or creates a .glv file. (A .glv file contains nonvolatile variables.)

This command has the following format:

ADDRESS GLV '[SELECT vargroup] PUTP varname . . .'
SELECT

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

varname

Specifies the name of a nonvolatile status or GLV variable. You can specify one or more varname variable names.

Note: If you assign a value to a nonvolatile variable, and a volatile variable of the same name already exists, the volatile variable will be erased.

Example:

Assume that the following PUTP 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 nonvolatile variables of the same name in the variable group STATS_GROUP:

ADDRESS GLV 'SELECT STATS_GROUP PUTP SUBTOTAL TOTAL'