DB2 graphic QMF Version 8

Using ISPF commands from a procedure with logic

You must transfer from the QMF program dialog to an ISPF command dialog in order to run ISPF commands from a QMF procedure with logic running under ISPF. Issue an ISPF SELECT CMD from your QMF procedure.

To set the correct ISPF environment and run a REXX program containing your ISPF commands, use the following ISPF SELECT command with the CMD keyword:

ADDRESS ISPEXEC "SELECT CMD(userprogram)"

userprogram is a REXX program that contains your ISPF commands.

For example, if the REXX program that contains your ISPF commands is called DIALOG, include the following command in your procedure with logic:

ADDRESS ISPEXEC "SELECT CMD(DIALOG)"

For more information on ISPF, see ISPF: Dialog Management Guide and Reference

You also can use a QMF CMS or TSO command to run your REXX program containing ISPF commands, for example CMS DIALOG or TSO DIALOG. QMF issues the ISPF SELECT CMD statement for you.

If you are running QMF under ISPF, and your procedure with logic starts a program requiring ISPF services, your procedure must start this program using the ISPF SELECT CMD environment as described in the preceding examples. For example, suppose you are running QMF under ISPF and your procedure with logic starts DB2's DSN command. Because the DSN command uses ISPF services, you should use one of the following commands to issue the DSN command:

ADDRESS ISPEXEC "SELECT CMD(DSN)"

or

ADDRESS ISPEXEC "SELECT CMD(DSNEXEC)"

where DSNEXEC contains the ADDRESS TSO DSN statement.


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