Another use for Second Pass Preprocessing is for arguments in an INCLUDE statement. Arguments may be sent to the target of an INCLUDE statement using the following syntax:
((INCLUDE job_name_to_include_from [arg1] [arg2] ... [arg9]))
Example: To make the arguments parameters or variables, Second Pass Preprocessing is required. Here is an example of p1 and p2 being used as arguments in an include statement:
((INCLUDE other_job "((p1))" "((p2))" ))
or
((INCLUDE other_job "YESTERDAY" "TODAY" ))
The values of p1 and p2 are YESTERDAY and TODAY. The job named other job needs to have commands that use the syntax %%1%% and %%2%% (up to %%9%%) to incorporate the supplied arguments.
run_complete %%1%% %%2%%
Then the processed result using the Preview button would be:
run_complete YESTERDAY TODAY