Lilarose
70 pts. | Sep 24 2009 5:54PM GMT
Thanks, but the query is going to be run interactively over existing files, so I won’t have any input into the file format the query runs over. I did try the form size option, but it still wouldn’t go landscape on legal.
CharlieBrowne
6540 pts. | Sep 24 2009 6:51PM GMT
If you are doing a RUNQRY command, you can prompt on that and set your Printer file specs
Lilarose
70 pts. | Sep 25 2009 2:47PM GMT
The runqry command has the same options as the Query itself, so there was no way to indicate legal size paper to print on. I found a work-around by sending it to the spoolfile, and from there to set the drawer # on the printer. That forced it to go to legal size paper when printing. It’s not pretty but it got the job done.
Thanks for the help.
KasMcc
120 pts. | Oct 13 2009 3:24PM GMT
If I need to print a query on different size paper, I put the query into a CL program and include the page layout in the program
E.g.
PGM
/* MONITOR FOR ALL ERRORS */
MONMSG MSGID(CPF0000)
/* SUBMIT QRYS TO PRINT Plan Volume Report */
OVRPRTF FILE(QPQUPRFIL) PAGESIZE(70 150) CPI(13.3) +
OVRFLW(69) OUTQ(QUSRSYS/PRT01) FORMTYPE(*STD) +
HOLD(*NO) SAVE(*YES) USRDTA(AUTUMN)
RUNQRY QRY(QRYPROGS/DAY36A)
DLTOVR FILE(*ALL)
ENDPGM
Hope this helps






