Q

Jog the *AFPDS printed output

Spool files when printed are able to jog (or offset stack) the output for identification of separate jobs or output files. I need to be able to jog the *AFPDS printed output based on an internal criteria (i.e. a delivery sheet) within a large output file. Is this possible? There is no information on how the separate spool files accomplish this act, but it is needed for our large batch jobs.
The jog feature is not part of the iSeries, but is in the printer. When the printer starts to print a new file, it jogs the stack.

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
==================================

Check out our section of application development topics.

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

Dig deeper on Printing on iSeries

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchEnterpriseLinux

SearchDataCenter

Close