The SETVAR macro creates variables for a process.
The SETVARS macro stores the values of transient variables. For example, the values of the &$RMMCWORDn variables change for each executed COMMAND, REPLY, and SYSCMD macro. Using the SETVARS macro, you can store the original values before they change.
Parameters: SETVARS Macro
Defines the variables (and their values) required by the process. These variables are passed to all macros in the process.
Example: SETVARS Macro
In the following example, the SETVARS macro sets the value of the &V1 and &V2 variables.
PROD----- Automation Services : SETVARS Macro Parameter Definition ------------ Command ===> Function=BROWSE .- Variable Details ----------------------------------------------------------. | | | Enter the variables to be created below. (e.g. VAR1=TEST VAR2=&$RMMCWORD1) | | | | Variable String... V1=ACTUAL V2=INACTIVE | | | | | | | ’-----------------------------------------------------------------------------’
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |