×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




You mentioned having TAATOOLS in another post.

You can purge based on create date DLTOLDOBJ

DLTOLDOBJ LIB(SAVFPRDDTA)
CRTDAYS(1)
OBJTYPE(*FILE)
ACTION(*DELETE)

Chris Hiebert
Senior Programmer/Analyst
Disclaimer: Any views or opinions presented are solely those of the author and do not necessarily represent those of the company.


-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Andrew Lopez (SXS US)
Sent: Tuesday, September 22, 2020 7:59 AM
To: midrange-l@xxxxxxxxxxxxxxxxxx
Subject: Question on 'appropriateness' of using QSH commands to clean up traditional QSYS files....

We use a number of QSH commands to clean the IFS of old log files produced by JD Edwards.

I have recently instituted a special backup to SAVF of sensitive files that we are having to open up to new users to maintain. These are created in library SAVFPRDDTA with names like CFG200922 (CFGyymmdd). I need to put in place some regular purges of these daily backups.

What I don't have a feel for is how common/accepted would it be to use QSH commands to clean up files in the traditional file system? We would be using something like 'find /QSYS.LIB/SAVFPRDDTA.LIB -type f -name 'CFG*.FILE' -mtime +60 -exec rm {} \;'. This works, but I've never seen it done or demoed (though I could well have missed the examples). I could do a traditional dump of DSPOBJ or DSPFD and process the records, but it's not in my nature to create temporary files when the system can handle them better than I can.

So, acceptable? Reasonable? I really prefer to not branch out into 'experimental' approaches and have no idea where this would fall in the IBM i world.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.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 on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.