Expressions can contain variables prefixed by the AutoEdit operator %%. AutoEdit processing makes the specification of expressions dynamic and flexible.
When Control-M/Analyzer encounters an expression, the contents of the expression are scanned for special symbols (starting with %%). These symbols are assumed to be variables and are replaced by their current value. The modified expression is then evaluated.
The AutoEdit operator and the AutoEdit facility and its variables are described in detail in AutoEdit Variables, and AutoEdit Substitution of Database Variables.
Example
Table 148 AutoEdit Processing Examples
Expression |
Description |
---|---|
DO SET = %%T=%%TOTAL |
Sets AutoEdit variable %%T to the value of AutoEdit variable %%TOTAL. |
IF %%TOTAL=100 |
Determines if the value of AutoEdit variable %%TOTAL equals 100. |
DO PRINT = THE AVERAGE IS %%AVG |
Prints the Local variable AVG. |
Parent Topic |