Accessing QMF from an editor
There are multiple ways to issue the GETQMF command from ISPF-PDF and PS/TSO.
- Example 1 – From ISPF-PDF: The USEQMF option specifies that QMF is used to produce the report during the edit session.
- Choose where you want the document inserted by using the A (after) or B (before) prefix commands.
- From your ISPF-PDF edit session, enter the GETQMF command:
GETQMF USEQMF MYPROC
Your screen is blank for a few minutes while MYPROC creates and prints a report.
- When the QMF object panel
appears, enter an EXIT command to exit QMF.
The report is inserted into your document as-is when QMF ends.
Use EXIT to leave QMF; the END command runs the initial procedure again.
- Example 2 – From ISPF-PDF or PS/TSO: The QMF report data set userid.MYREPORT is inserted into the user's document as is.
- From a document in ISPF-PDF or PS/TSO, insert a prefix command A (after) or B (before) to receive the new report at the proper place.
- On the command line, enter the GETQMF command:
GETQMF ASIS DSN userid.MYREPORT
The macro gets the existing report, userid.MYREPORT. Then it inserts it into your document and returns you to the ISPF-PDF or PS/TSO editor you were using before you issued the GETQMF command.
- Example 3 – From ISPF-PDF: The QMF report is produced interactively in QMF.
- Enter the GETQMF command:
GETQMF ASIS USEQMF
Your screen is blank for a few minutes while the macro is running.
- When the QMF home panel appears with a document interface message, produce a report as you normally would in QMF.
- Alter the form of the report if necessary.
- Display the report to check it.
- Enter
PRINT REPORT
. - Enter an END or EXIT command to exit QMF.
The report is inserted into your document, and you return to ISPF where you were before issuing the GETQMF macro.
- Enter the GETQMF command:
If you type EXIT
on the QMF command line without printing a report, you
are returned to ISPF. An error message displays, and no report is
inserted.