The following examples issue the GETQMF macro from:
Example 1--From XEDIT, the CMS NOTE facility, or PROFS: 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.
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, PROFS, 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.
GETQMF U
(U is the minimum abbreviation for the USEQMF option.)
Your screen is blank for a few minutes while the macro runs.
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 a PROFS NOTE screen: This example inserts the report directly into a CMS file. You do not see any QMF status panels, and you are not aware that the insertion occurred until a message appears in PROFS.
GETQMF PROFS USEQMF MYPROC2
Your screen is blank for a few minutes while MYPROC2 runs the query, prints the report, and exits QMF.
A message in PROFS indicates the QMF report has been printed to QMF REPORT A1.
The QMF report is inserted into the PROFS note.
Example 5--From a PROFS document: This example produces a QMF report to insert into the text part of a PROFS document.
GETQMF PROFS USEQMF
The QMF Home panel appears.
The report is inserted into your document (with SCRIPT/VS control words), and you are back in PROFS.
Example 6--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.
GETQMF DCF USEQMF MYPROC
Your screen is blank for a few minutes while MYPROC creates and prints a report.
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.