IFS Purge Delete files

1,380 pts.
Tags:
AS400 IFS Delete
We, as I imagine everyone, have an accumulation of files of many types sitting on the IFS in company/user defined folders.  Most of ours are PDF's and spreadsheets from program output that has been emailed.  Some sit there and are 'refreshed' every time the program runs.  Others are test files and maybe reports that were 'one timers' or not used anymore.

I would like to be able to find the unused files, move them to another folder, save to tape and finally delete them.  We are at VR4M0.

What are some of the methods used for purging/deleting old files from the IFS programmatically?

Thanks,

Nick



Software/Hardware used:
AS400 V5R4M0
ASKED: December 2, 2011  9:34 PM
UPDATED: February 28, 2012  3:46 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    Other than products for the purpose, I don't think I've seen anything. It's not excessively difficult to write a recursive directory traversal procedure. The opendir(), readdir() and closedir() APIs are reasonably easy. The stat() API returns any date/time info needed to decide how to process the entries that are read. At least one alternative to coding the logic is to use the Qp0lProcessSubtree() API can be used, but the logic can be easier to code. One tricky difference is that Qp0lProcessSubtree() will present entries in a depth-first fashion. That can be difficult to code if you do it yourself, and can be handy for purge functions. But the API can also take some practice to get under control. Tom
    125,585 pointsBadges:
    report
  • NickHutcheson1
    [...] 8. A member wonders how to cut down some of the unused files on his AS/400 system. [...]
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following