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 shown in the following table:
Table 15 Valid 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. Increase the number of generations (%%GENERATION_NUMBER) by one, as follows:
// %%SET %%GENERATION_NUMBER=%%GENERATION_NUMBER %%PLUS 1
If the value of %%GENERATION_NUMBER was initially 1, it is now set to 2.
Parent Topic |