Thanks - I appreciate your help and the explanation!
Main Topics
Browse All TopicsI would like to write a CL to auto-delete any files in an IFS directory that are older than 5 days old. Has anyone done something like this before?
I figured I would ask to see if anyone had any examples to provide before spending a lot of time developing something
I appreciate any help anyone can offer.
Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: Gary_The_IT_ProPosted on 2009-08-20 at 12:10:04ID: 25145991
Personally, I use QSH for IFS file management tasks like this. For example, this QSH command:
Executes the find command, searching the /HOME/mydir folder, for any files with a "last change" time on them more than 5 days ago, and with names ending in ".class" (you can omit the -name directive to FIND all files).
The -exec option runs the rm "remove" command each time a matching file is found. Think of the "{}" as a variable that represents each found file. The "\;" is just there to terminate the command.
You can run QSH commands from a CJ program using the QSH command.
Find: http://publib.boulder.ibm.
Qshell:
Needle
- Gary Patterson