830 pts.
 AS/400 raw 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.

Software/Hardware used:
ASKED: December 7, 2009  2:10 PM
UPDATED: December 8, 2009  2:53 AM

Answer Wiki:
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
Last Wiki Answer Submitted:  December 8, 2009  2:53 am  by  TomLiotta   108,215 pts.
All Answer Wiki Contributors:  TomLiotta   108,215 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _