You can customize your system so you can print an object without exiting QMF. You can use a local print utility by simply pressing the Print function key, if you define a command synonym for printing and customize your Print function key.
/* PRTQMF REXX EXEC for local DSPRINT */
CALL DSQCIX "PRINT PROC (PRINTER=MYPRINT1"
DSPRINT '&SYSUID..MYPRINT1.DATA'
This example assumes you have a MYPRINT1 nickname defined and that it directs print output to a data set called MYPRINT1.DATA.
Some QMF users prefer to bypass the print command and simply export the object for local printing. In this case your exec looks something like:
/* PRTQMF REXX EXEC for local print utilities called DSPRINT */
CALL DSQCIX "EXPORT PROC TO MYPROC"
DSPRINT '&SYSUID..MYPROC.PROC'
INSERT INTO COMMAND_SYNONYMS (VERB, SYNONYM_DEFINITION, REMARKS) VALUES('PRTQMF','TSO PRTQMF','Print QMF Proc')
INSERT INTO PFKY__TABLE (PANEL,ENTRY_TYPE,NUMBER,PF_SETTING) VALUES('PROC','K', 4, 'PRTQMF')
This example assumes that the user's profile has the PFKEYS column value set to PFKY_TABLE, the name of the function key customization table. (After running the query, QMF must be restarted to implement the function key change.)