Previous Topic: SESSCNTL CommandNext Topic: STOPREXX Command


SETVAR Command

The SETVAR command sets the contents of a CA Automation Point status variable to a given value, changes the value of a variable, or creates a new variable.

This command has the following format:

"SETVAR varname (value)"
varname

Specifies the name of the CA Automation Point variable to set.

value

Specifies the value to be assigned to the variable.

Usage Notes:

Example:

Suppose that REXX is operating without errors and you want to create a CA Automation Point variable called REXX_STATUS with a value indicating the status of REXX processing. To do so, write this statement in your REXX program:

"SETVAR REXX_STATUS (NO ERRORS)"

When the SETVAR command executes, the value of the REXX_STATUS variable is set to NO ERRORS.