You can create a PRTF with all the specifications for your output: OUTQ, FONT, #characters per line, etc.
Then change your QRYDFN to use that file or do an OVRPRTF before you run your query.
Or you can change the Form Size in the Query, to the width you need.
Last Wiki Answer Submitted: September 24, 2009 5:49 pm by CharlieBrowne32,825 pts.
All Answer Wiki Contributors: CharlieBrowne32,825 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
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.
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.
If I had found this earlier I would not have dried up my ink cartridges running test after test to try and do it right. Thank you for the information, you saved my day.
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.
If you are doing a RUNQRY command, you can prompt on that and set your Printer file specs
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.
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) ENDPGMHope this helps
If I had found this earlier I would not have dried up my ink cartridges running test after test to try and do it right. Thank you for the information, you saved my day.