If you split up your report into separate spool files, then the printer will jog each file. To do this, whenever your program starts a new delivery sheet it should close the printer file and then open it. Specify USROPN on the F-spec for the Printer file, and use the OPEN and CLOSE operation codes in the C-specs.
A disadvantage of this approach is that other print jobs can queue on the printer while it is printing your files. If that is a problem, you may be able to get around it by allocating the output queue exclusively to your job while it is creating the spool files. Experiment with that if you need it.
MORE INFORMATION ON THIS TOPIC
Visit the ITKnowledge Exchange and get answers to your developing questions fast.
Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.
Dig Deeper on Printing on iSeries
Related Q&A from John Blenkinsop
When an error occurs on an IBM command, the diagnostic messages are sent first, then an escape message, which you can monitor. On AS/400 you see the ... Continue Reading
Learn how to 'append data to the file' with the FTP DIR command, and eliminate the hassle of having to end the FTP session and restart to view ... Continue Reading
RPGIV will 'think of' incoming integer fields as binary, and then will redefine them in the program structures as PACKED. So, when you chain a record... Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.