It's already been done for you. A good sample intro to API's.
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Tim Adair
Sent: Wednesday, September 05, 2012 11:41 AM
Subject: Re: Delete all but latest spool file member
I thought about writing it but I really don't have the time. I don't have
enough experience with APIs to be comfortable with them yet.
Maybe when things slow down (if they ever do) I could give it a whack.
<rob@xxxxxxxxx> wrote in message
I do not know of such a utility. And I can see the purpose of it. It
shouldn't be too hard to write by utilizing either the List Spool Files
API or the Open List of Spool Files API. I've used those.
IBM Certified System Administrator - IBM i 6.1 Group Dekko Dept 1600
Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
Kendallville, IN 46755