QMF services for printing in native z/OS batch, TSO, and ISPF

You can use DSQPRINT to print a report, table, SQL or QBE query, procedure, or your profile.

DSQPRINT is a special printer destination that QMF uses when you do not supply a printer name on the command line or in the user profile. DSQPRINT must be allocated with a DD statement that points to the data set or output class QMF uses for printing. The DD statement becomes part of your QMF startup exec, CLIST or JCL.

To add your printed output to a user-owned data set, allocate DSQPRINT by using JCL or a CLIST. Here is an example of JCL to allocate DSQPRINT:
//DSQPRINT DD DSN=&SYSUID..PRINT.DATA,DISP=MOD
Here is an example of a CLIST that accomplishes the same thing:
ALLOC DDNAME(DSQPRINT) SYSOUT(A) LRECL(133) RECFM(F B A) BLKSIZE(1330)
FREE DDNAME(DSQPRINT)
To route your output to a printer, allocate DSQPRINT by using the following syntax:
//DSQPRINT DD SYSOUT=A,DCB=(RECFM=FBA,LRECL=133,BLKSIZE=1330)

Set the carriage control (CC) option to YES when you issue the PRINT command.

If you are using ISPF, you can use the DPRE (Display Printed Report) command synonym that is supplied with QMF to view the effects of the width and length values you specified without having to print the report. This view is applicable only while you use DSQPRINT.