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