Using QMF

Passing values to a procedure with logic

For procedures with logic, use the ARG option on the RUN PROC command to pass arguments, or values, to a procedure with logic. You can also use the ARG option to pass values between procedures.

Use the ARG option when you are running a procedure that contains a REXX PARSE ARG statement or ARG statement, as in Figure 155.

Figure 155. The ARG option passes values to a procedure with logic.

+--------------------------------------------------------------------------------+
| PROC               WILDE.SHOW_ARGS                      MODIFIED    LINE 1     |
|                                                                                |
| /************************************************************************/     |
| /* This procedure shows you how to use the 'ARG=' option on the RUN     */     |
| /* PROC command.                                                        */     |
| /************************************************************************/     |
| parse upper arg query_name form_name                                           |
| "RUN QUERY" query_name "(FORM="form_name                                       |
+--------------------------------------------------------------------------------+

The RUN command for this procedure is:

RUN PROC SHOW_ARGS (ARG=(query_name form_name)


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]