Have you tried the Retrieve Output Queue Information (QSPROUTQ) API ?
Enable job accounting. Create a journal receiver. Create journal QSYS/QACGJRN and attach the receiver to it. Set system value QACGLVL to *PRINT.
All print activity will then be logged in QACGJRN.
Last Wiki Answer Submitted: November 26, 2009 10:29 am by Satsho1,245 pts.