Passing arguments to a procedure with logic
For procedures with logic, QMF provides an ARG option on the RUN PROC command. Use this option to pass arguments, or values, to a procedure with logic.
Use the ARG option when you are running a procedure that contains a REXX PARSE ARG or ARG statement, as in the example shown here:
The RUN command for this procedure is as follows:
RUN PROC SHOW_ARGS (ARG=(query_name form_name)
In this command, query_name and form_name are REXX variable names that describe the parameters that are passed to the procedure with logic. Use these variables, which contain the object names for a query and a form, to reference the parameters that were passed to the procedure with logic.