As an alternative, how about expiring spool files?
I don't know exactly what you may be after, but you can do either OVRPRTF
EXPDATE(thedate) or OVRPRTF EXPDATE(*DAYS) DAYS(1). Then use a job
scheduler job to run once a day and run the DLTEXPSPLF command. It gets
rid of all expired spool files.
I use the DAYS() example a lot. Some reports 1 day, some 3 days, some 30
days, etc. There are different logs or registers that I create, never
intending to print, but may want to look at if an issue arises.
This mailing list archive is Copyright 1997-2013 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact