DO SET statements are used to assign values to Local variables, Database variables, and AutoEdit variables. When assigning values to AutoEdit variables, DO SET statements can have the following formats:
DO SET = %%symbol=value
DO SET = %%symbol=valid expression
DO SET = %%symbol=control statements
The symbol must be a valid user-defined AutoEdit symbol.
Note: The maximum number that can be handled by mathematical AutoEdit operations is 231-1 (2147483647).
Control-M/Analyzer attempts to resolve the symbol to a single value by processing it from right to left. For example
DO SET = %%BACKUP_UNIT_%%SYSWDAY=EE%%SYSMONTH.%%SYSDAY
On Sunday, the 24th of December, the user-defined symbol %%BACKUP_UNIT_1 is assigned the value EE1224.
If the symbol assigned in a DO SET statement is not completely resolved, the default action is to cancel the DO SET action and all subsequent actions of the current rule activation. This default can be overridden by specifying SYSRESOLVE=NO in a previous DO SET statement, in which case the symbol is resolved as completely as possible before performing the DO statement in which it is found. The SYSRESOLVE statement format is described in SYSRESOLVE Control Statement.
Note: SYSRESOLVE=NO is not currently available.
Parent Topic |