The following are additional examples of AutoEdit variable substitution.
Example 1
%%SMF_TAPE_%%DAY,
resolves on the third of the month to:
%%SMF_TAPE_03,
The AutoEdit facility then tries to resolve the symbol %%SMF_TAPE_03. Assuming the value of the symbol in the Global environment is EE1022, the result is:
EE1022
To concatenate two symbols, separate them with a period. Before AutoEdit variables are concatenated, trailing blanks are eliminated.
Example 2
%%DAY.%%MONTH
resolves on the 4th of December to:
0412
Note: Specification of %%DAY%%MONTH would result in an attempt to resolve %%DAY12 (a user-defined variable).
In order to put a period between two symbols, use two consecutive periods.
Example 3
%%DAY..%%MONTH
resolves on the 4th of December to:
04.12
To concatenate a symbol and a constant, use %%. (concatenation symbol).
Example 4
A91%%DAY%%.UP
resolves on the 4th of December to:
A9104UP
Note: Specification of A91%%DAYUP would result in an attempt to resolve %%DAYUP (a user-defined variable).
Parent Topic |