AS/400 raw spool files

830 pts.
Tags:
AS/400 Spooled Files
Spool files
Does anyone know how to identify the file and member which contains the printer data stream for a particular output queue entry? I can use a data queue associated with an output to know when a spool file has been placed on the queue. I need to insert some text into the spool file before it is sent to a printer. I need to do this for every report that is sent to a specific queue regardless of which program created it.

Answer Wiki

Thanks. We'll let you know when a new response is added.

You can identify the file and member, but you absolutely and definitely <b>do not want to do so</b>. That <b>is not</b> the appropriate approach and may significantly interfere with the spooling/printing subsystem if you do.

If you really need to insert anything into a printer data stream after it has been spooled, you will need to use <a href=”http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/apis/print1b.htm”>the spooled file APIs</a> to retrieve the spooled file into user spaces, modify the spaces and re-spool the data stream from the spaces into a new spooled file.

Tom

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

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

Forgot Password

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

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

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

Thanks! We'll email you when relevant content is added and updated.

Following