This method involve appending strings together using + signs to create a final string that contains the name of a variable.
Example: In this example, we want to append the value of a parameter to the text string "WEEKLY_REPORT" and use that as the variable name that will be processed in the job. This requires the following of construct
(("(" + "(" + p1 + "_WEEKLY_REPORT" + ")" + ")"))
In the first pass p1 is appended together, evaluated and appended to _WEEKLY_REPORT using the + sign text append operator. If the value of P1 is "Business" the first pass would yield.
((BUSINESS_WEEKLY_REPORT))
In the second pass the contents of the resultant string are evaluated and the variable "BUSINESS_WEEKLY_REPORT" is resolved giving the final result.
C:\Reports\busines_12345.rpt