By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
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.
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.