Specifying values for variables on the RUN command
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.
You can assign a value to a substitution variable by using the RUN command:
- When running a linear
RUN PROC SCHEDULE (&&TYPE='VACATION'
- When running a procedure with logic:
"RUN PROC SCHEDULE (&&TYPE='VACATION'"
You enclose the variable value
VACATIONin 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.
In the example above, the value of
&&TYPEis available only to the procedure that is called SCHEDULE.