DB2 graphic QMF Version 8

Passing arguments to a procedure with logic

For procedures with logic, QMF provides an ARG option on the RUN PROC command. This option lets you 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 following example:

 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)

Using the ARG option, you can also pass values between procedures.


Go to the previous page Go to the next page

Downloads | Library | Support | Support Policy | Terms of use | Feedback
Copyright IBM Corporation 1982,2004 Copyright IBM Corporation 1982, 2004
timestamp Last updated: March, 2004