Q
Problem solve Get help with specific problems with your technologies, process and projects.

Quick and easy listing of the IFS

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

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close