DB2 graphic  QMF Version 8

Running a procedure

To run a procedure, on the QMF command line, enter:

RUN PROC procname

The QMF commands you specify in a linear procedure run in the order they appear in the procedure. The QMF commands you specify in a procedure with logic run in the order that is specified by the logic of the procedure.

If the QMF commands in the procedure run a query or display a query or form, they change the contents of the temporary storage areas DATA, FORM, or QUERY. This occurs just as if you entered each command separately on the QMF command line.

If an error occurs while a linear procedure is running, QMF stops running the procedure. The PROC panel displays the command that contains the error the top of the panel. The error message at the bottom of the screen provides information on correcting the error.

If an error occurs while a procedure with logic is running, the logic of the procedure determines when the procedure ends and what displays. For more information, see Using REXX error-handling instructions in procedures with logic.

If ISPF is available on your system, you can use the QMF batch application to run the procedure while you are doing other work at your terminal. For more information, see DB2 QMF Reference.


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