MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » February 2013

Re: Spool files



fixed

We delete all spool files older than 90 days - no exceptions. I have code
to do this but we use so many standard includes, etc that you would be
lost without them all.

Basically what it does is:
- Create a user space by using the quscrtus API.
- List the spool files to this user space by using the quslspl api.
- Retrieve a pointer to this user space by using the qusptrus api.
- Run through each entry in the user space. If they meet the criteria
then use the DLTSPLF command via the system api (but I recommend QCMDEXC
instead).

For details on these APIs see:
http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/topic/apiref/api.htm


Rob Berendt





Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 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