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 to print a report, table, SQL or QBE query, procedure, or the profile. DSQPRINT must be allocated with a DD statement that points to the data set or output class QMF uses for printing, or with a FILEDEF that points to the file or output class QMF uses for printing. The DD statement becomes part of your QMF startup exec, CLIST, or JCL. The FILEDEF is part of your QMF startup exec or is run from a QMF session using the QMF CMS command. You must allocate DSQPRINT before running the QMF PRINT command.
To add your printed output to PRINT FILE A, use the following syntax:
"FILEDEF DSQPRINT DISK PRINT FILE A(LRECL 133 BLKSIZE 133 RECFM V PERM", "DISP MOD"
The use of DISP MOD ensures that each PRINT command adds the latest print output to the end of the file, instead of overwriting the results of the previous PRINT command.
To add your printed output to a user-owned data set, allocate DSQPRINT using either the following JCL:
//DSQPRINT DD DSN=&SYSUID..PRINT.DATA,DISP=MOD
or the following CLIST:
ALLOC DDNAME(DSQPRINT) SYSOUT(A) LRECL(133) RECFM(FBA) BLKSIZE(1330) FREE DDNAME(DSQPRINT)
To route your output to a printer, allocate DSQPRINT using the following syntax:
//DSQPRINT DD SYSOUT=A,DCB=(RECFM=FBA,LRECL=133,BLKSIZE=1330) (TSO)
"FILEDEF DSQPRINT PRINTER(LRECL 121 BLKSIZE 121 RECFM VBA PERM"(CMS)
If you are using ISPF: You can use the QMF-supplied DPRE (Display Printed Report) command synonym to view the effects of the width and length values you specified without having to print the report. This is applicable only while using DSQPRINT.
[ Previous Page | Next Page | Contents | Index ]