DB2 graphic  QMF Version 8

Accessing QMF from a VM editor

The following examples issue the GETQMF macro from:

Example 1--From XEDIT or the CMS NOTE facility: The existing QMF report file XX MYREPORT A1 is inserted as is. Use the FILE option to specify the name of the CMS file that contains the QMF report. The insertion occurs without a QMF session.

  1. In XEDIT, position your document to insert the QMF report in the proper place (see Information about your editor.)
  2. Enter the GETQMF macro on the command line.
    GETQMF ASIS FILE XX MYREPORT

    The report named XX MYREPORT A1 is inserted directly into the document you are working on, just after the current line. You get a message that indicates that the report is inserted.

Example 2--From XEDIT or ISPF-PDF: The existing QMF report named XX MYREPORT A1 is inserted into your document as is. (ASIS is the default.) The procedure is the same as in Example 1:

GETQMF FILE XX MYREPORT

Example 3--From XEDIT: This example inserts a new report into your document and shows the minimum abbreviation of the USEQMF option.

  1. In XEDIT, position your document to insert the QMF report after the current line (see XEDIT).
  2. Enter the GETQMF macro:
    GETQMF U

    (U is the minimum abbreviation for the USEQMF option.)

    Your screen is blank for a few minutes while the macro runs.

  3. When the QMF Home panel appears with a document interface message, produce a report as you normally would in QMF.
  4. Alter the form of the report if you want.
  5. Display the report to check it.
  6. Enter PRINT REPORT.
  7. Enter END or EXIT to exit QMF.

    The report is inserted into your document, and you return to XEDIT where you were before you issued the GETQMF macro.

If you type EXIT on the QMF command line without printing a report, you return to XEDIT. An error message appears, and no report is inserted.

Example 4--From ISPF-PDF: The USEQMF option specifies that QMF is used to produce a report during the edit session. The named procedure MYPROC runs to produce the report.

  1. From a document in ISPF-PDF, insert a prefix command A (after) or B (before) to receive the report at the proper place (see ISPF-PDF).
  2. Enter the GETQMF macro:
    GETQMF DCF USEQMF MYPROC

    Your screen is blank for a few minutes while MYPROC creates and prints a report.

  3. When the QMF object panel appears, enter EXIT to exit QMF.

    The report is inserted into your document (with SCRIPT/VS control words) when QMF ends.

    Use EXIT to leave QMF; the END command runs the initial procedure again.


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