I ran the Disk Space Report and found that 45% of my disk on the iSeries is being taken up by user directories. How can I get a listing of all the directories, and contents in those directories, listed by size -- largest to smallest?
IBM doesn't provide a nice easy way to list this information. I've seen examples of FTPing to your own system and using FTP commands to list directories and I've seen elaborate RPG programs that collect and present this information.
However, I also know of a FAST easy way to list the information you want to a spool file. It isn't very elegant, but it does get you the information.
This program call can run for quite awhile, so submit it to batch. Here we go...
Try running this: CALL PGM(QSRSRV) PARM(METRICS '/' EPFS)
MORE INFORMATION ON THIS TOPIC
The Best Web Links: tips, tutorials and more.
Ask your OS/400 questions -- or help out your peers by answering them -- in our live OS/400 discussion forums.
Ask the Experts yourself: Our OS/400 gurus are waiting to answer your questions.
Check out this Search400.com Featured Topic: Top 10 expert tips for OS/400
Dig Deeper on Past Releases
Related Q&A from Ken Graap
The BRMS Network feature allows a BRMS system to connect to other BRMS systems via a network, and enables a user to consolidate media such as backup ... Continue Reading
The only option to correct damage preventing file journaling is to use the RCLSTG command. Continue Reading
IBM's iSeries Backup and Recovery manual answers many questions related to system backup and disaster recovery. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.