Previous Topic: SELECT CommandNext Topic: SETL Command


SET Command

The SET command assigns values to one or more volatile status or GLV variables.

This command has the following format:

ADDRESS GLV '[SELECT vargroup] SET varname value [varname value . . .]'
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 volatile status or GLV variable.

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.

You can specify one or more varname variable names, but each varname that you specify must have a matching value.

value

Specifies the value to assign to the variable specified by varname. The valid value is any character string that does not contain blanks.

Example:

The following REXX statement assigns the literal value SYS1_IPL to the EVENT variable and the literal value DATE_AND_TIME to the EVENT_TIME variable:

ADDRESS GLV 'SET EVENT SYS1_IPL EVENT_TIME DATE_AND_TIME'