In QMF, this example creates and inserts a report into a document with XEDIT.
GETQMF DCF USEQMF MYPROC1
The GETQMF macro runs the MYPROC1 routine in QMF. MYPROC1 creates and prints the report. The report is inserted into your document.
Your QMF session ends if you use a procedure that issues an EXIT command.