Assigns a value to an AutoEdit variable that can be used to set up the JCL of the job or to define a Global variable in the IOA Global Variable Database.
Note: SET VAR and DO SET statements are similar, but not identical. The differences are outlined below in Differences between SET VAR and DO SET.
Figure 306 SET VAR Parameter Format
Optional. Valid values must comply with the following requirements:
%%variable=expression
In this format:
- %%variable is a user-defined AutoEdit variable
- expression is any of the following components, provided it resolves to a single value:
— a value (for example, 5)
— an AutoEdit System variable or previously defined user-defined variable, for example, %%ODATE
— a compound expression that contains constants, AutoEdit variables, or AutoEdit functions, or any combination of these, for example
%%$CALCDTE %%$ODATE +5
WARNING: AutoEdit function %%SUBSTR should not be used in the expression portion of a SET VAR variable definition. Doing so might cause errors when trying to resolve the variable’s value.
Parent Topic |