Previous Topic: GETREXXL CommandNext Topic: GETVARL Command


GETVAR Command

The GETVAR command copies the value of a CA Automation Point status variable into a local REXX variable.

This command has the following format:

"GETVAR varname [rexxvar]"
varname

Specifies the name of the CA Automation Point variable to be copied.

rexxvar

(Optional) The name of the local REXX variable into which the CA Automation Point variable is copied. If you do not specify a REXX variable name, the value of the first CA Automation Point variable is copied into the REXX variable AXCRESULT.

Usage Note:

GETVAR status variable names are case-sensitive in CA Automation Point. Use uppercase variable names consistently.

Example:

To give the variable SCREEN_STATUS the same value as the status variable SCRSTAT, issue this command:

"GETVAR SCRSTAT SCREEN_STATUS"

Note: If you issue this command when the SCRSTAT status variable has the value LOCKED, the REXX variable SCREEN_STATUS is also set to LOCKED.