You can assign a value to a substitution variable by using the RUN command:
RUN PROC SCHEDULE (&&TYPE='VACATION'
"RUN PROC SCHEDULE (&&TYPE='VACATION'"
You enclose the variable value VACATION in single quotes because the value is a character string. Precede the variable with && to set the value on the RUN statement, or with & if the procedure prompts you for the value.
This value for the substitution variable is active only within the procedure that defines it. The value is not active in any procedure or module called from the defining procedure.
In the previous example, the value of &&TYPE is available only to the procedure that is called SCHEDULE.