AutoEdit operators are used to add or subtract values from AutoEdit variables in the JCL. These operators can only be specified in a %%SET statement. Valid AutoEdit operators are:
Table 259 AutoEdit Operators
Operator |
Description |
---|---|
%%PLUS |
Adds a value to an AutoEdit variable. |
%%MINUS |
Subtracts a value from an AutoEdit variable. |
AutoEdit operators are generally used as follows:
%%SET variable=operand operator operand
where:
Only one operator can be specified in each %%SET statement.
Example
Increase the number of generations (%%GENERATION_NUMBER) by one:
// %%SET %%GENERATION_NUMBER=%%GENERATION_NUMBER %%PLUS 1
If the value of %%GENERATION_NUMBER was initially 1, it is set to 2.
Parent Topic |