Delete A File From The Ifs Of Salvation
RE: Delete IFS files WITHOUT deleting the directory -- No. RMVLNK is similar to DLTOBJ. The * in the path is a wild card that means any. So the effect is to remove. Hello, I am trying to automatically delete log files in a IFS folder. I installed the IFSTOOLS from the website but when I try running the DEL command it prompts me.
Deleting files from the IFS and QDLS I have a need to delete files from both root (and root directories) and QDLS. I have tried the IFS tools but the DLTIFSF comes back with one of 2 error codes (3025 No Such File or library and 3486 A path name is too long). I had used the qryifslib function to produce a list. (ran it once on root and second time specifying /QDLS) I have a file that contains the list of files that need to be deleted.
Some of these are in directories in root (not including QDLS) and some that are in QDLS. I need help in being able to delete the files that are in the input file. Company Law By Luqman Baig Pdf Reader more.
I have been asked to create an automatic procedure which cleans out (ie delete) files older than 6 months. Transaction files keep coming into the system, and after having been processed (read) they are moved to an IFS directory 'archive'. We now have more than 90.000 files from last 26 months. I have considered various solutions like 'ls' to a file, and then read via pgm and execute delete, BUT something tells me that there is a better solution. I would like to do the job from a CL-pgm using STRQSH with some 'rm' command, but I got stuck in my investigations.
Pls give me some thoughts on how to do this smart. Software/Hardware used: system i, v6r4.
After a lot of investigation, I got created the one-statement-solution to my question. Since no one amongst you seems to know what I found out, I'll teach you the trick. If you insert the directory-path of the directory to search/delete old files into the following CL-statement the command will do the job of deleting fils older than 180 days. STRQSH CMD('find [mydirpath] -type f -mtime +180 xargs rm') In short: the QSHELL command 'find' creates an internal list of files older than 180 days; - the lst is 'piped' (passed) to the delete-function ('xargs rm'). Of course the 180-number may be changed to other values. Yet another proof tht we are working on a great machine - it also runs unix-commands:-) PS: Some may prefer two lines of code: CD [mydirpath] STRQSH CMD('find. -type f -mtime +180 xargs rm') best rgds DanF.