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.
Here is an example of a CLIST that accomplishes the same thing:
//DSQPRINT DD DSN=&SYSUID..PRINT.DATA,DISP=MOD
ALLOC DDNAME(DSQPRINT) SYSOUT(A) LRECL(133) RECFM(F B A) BLKSIZE(1330) FREE DDNAME(DSQPRINT)
//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.