25 pts.
 IFS/Folder size
I would like to know how to find the the size of individual IFS link and also Folder.  Is there any tool or script for that ?

Software/Hardware used:
OS: V5R4M5
ASKED: May 4, 2011  7:20 PM
UPDATED: May 6, 2011  5:41 PM

Answer Wiki:
Quickest way I know at command line edtf '/' Put a 6 (path Size) next to a directory you will then see the display show size number of Directories and number of files. When you drill down on the directory file size will show. On larger directories it may take awhile for display to change to show size. When drilling down files will show size but directories will need another 6 next to name to drill further.
Last Wiki Answer Submitted:  May 5, 2011  6:22 pm  by  Rickmcd   1,480 pts.
All Answer Wiki Contributors:  Rickmcd   1,480 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Simplest method might be to share the directory out to the Windows network, then use Windows Explorer to show the ‘Properties’.

Or you might use the ls utility in Qshell with the -l parameter. The size of the listed directory is given on the first line, before directory entries are listed. (That’s similar to what Windows Explorer does as part of retrieving properties.)

Tom

 108,055 pts.

 

If you can use qshell, you can try:

du

(to show sizes of all folders in current location)

or

du -s

(to summarize the whole folder you are in only)

I do it in Linux all the time, but can’t for the life of me figure out how to get the one in qshell to show ‘human readable’ numbers…

 4,990 pts.

 

I haven’t quite determined appropriate usage of du nor df in Qshell, though both seem functional even if documentation is practically non-existent. The -k flag helps a little in reporting 1024-byte blocks rather than 512. But the exact relationship to actual useful sizes isn’t obvious either way.

Maybe someday I’ll find out enough to pin them down.

Tom

 108,055 pts.

 

BTW, for individual streamfiles, you can always use DSPLNK to get to option 8=’Display attributes’. Both actual size and ‘allocated’ size are among the available attributes.

Tom

 108,055 pts.

 

Thank you all for the answers. Actually I don’t want to any manual process by using command “WRKLNK” and option “6″ against each link to find out the size. I have more than 1000 links/sub links under that, so it is not practically possible to do anything manually.

What I am looking for is CLP/QShell script to give a report (spool file) of all links/sub links under that with size. So that, I can see the report to know what are the links in my system to take necessary action to free up some space.

Hope my requirement is clear.

 25 pts.

 

Hi,

I managed to get the report by using command “RTVDIRINF” and PRTDIRINF.

Cheers.

 25 pts.

 

I don’t want to any manual process…

Then the Qshell utilities are probably your best choice if you create a custom function. A shell script, or perhaps just a compound command could do the work. You could have it run automatically if needed.

“RTVDIRINF” and PRTDIRINF

RTVDIRINF should perhaps be set up to run periodically anyway, maybe weekly. It’s not often a good idea to run it on demand during working hours. If you can trust it to be reasonably stable during the time between runs, then PRTDIRINF can be a good solution.

Tom

 108,055 pts.