Midrange News for the IBM i Community


Posted by: Chris Proctor
Programmer Analyst
Columbia Sports Company
Portland, OR
RPG pgm to clean-up old files in the IFS
has no ratings.
Published: 11 Oct 2012
Revised: 23 Jan 2013 - 1611 days ago
Last viewed on: 21 Jun 2017 (5577 views) 

Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.

RPG pgm to clean-up old files in the IFS Published by: Chris Proctor on 11 Oct 2012 view comments(11)

Good morning. We're trying to clean-up our IFS and the users have said that they only need a 60 day retention period, so now I have to come up with an application to look at multiple folders in QDLS and delete files that are older than 60 days.

I've heard there is an API that I can use to read the files within a folder. I don't know what it is or if it will give me the creation date of the file so that I can perform an UNLINK for it.

Does anyone know what the API is called and if it would provide me with this info?

Thanks!

Return to midrangenews.com home page.
Sort Ascend | Descend

COMMENTS