iSeries / AS400 FAQ : (Category) Programming : How can I determine the size of objects in the IFS?
Q. I want to monitor (programmatically) the utilisation of space in the IFS; similar to DSPOBJD. A. Here’s a link to a Knowledge Base article on using QShell. http://www-1.ibm.com/support/docview.wss?uid=nas160a8d6b416bb49ac8625681f001b280a&rs=110 qsh can be called from a CL program, so this could be automated. Output can even be redirected to a physical file that already exists – probably one that is not externally described. Running this against /* will take a long time. BTW, the article speaks of the ‘>’ pipe – as has been pointed out, this is not a pipe, rather, a redirection. There’s also a set of tools for IFS from IBM called IFSTOOL. Try ftp://testcase.boulder.ibm.com/as400/fromibm/ApiSamples/ Finally, look at http://search400.techtarget.com/tip/1,289483,sid3_gci894855,00.html?FromTaxonomy=%2Fpr%2F2f8 for info on PTFs (V5Rx) that gives a list of directories with the size of each and the number of links inside each. Individual files are not listed, AFAIK.
Related Questions
- iSeries / AS400 FAQ : (Category) Programming : (Category) CL : How can I determine the IP address my session is using?
- iSeries / AS400 FAQ : (Category) Programming : How can I determine the size of objects in the IFS?
- iSeries / AS400 FAQ : (Category) Programming : How can I recursively delete an IFS directory?