Ask the Expert

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

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

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: