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.
This was first published in May 2005