IFS/Folder size

25 pts.
Tags:
IFS
IFS Folder
IFS record size
V5R4M5
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

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question: 7  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    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
    125,585 pointsBadges:
    report
  • Koohiisan
    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...
    5,020 pointsBadges:
    report
  • TomLiotta
    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
    125,585 pointsBadges:
    report
  • TomLiotta
    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
    125,585 pointsBadges:
    report
  • ISeriesCOE
    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 pointsBadges:
    report
  • ISeriesCOE
    Hi, I managed to get the report by using command "RTVDIRINF" and PRTDIRINF. Cheers.
    25 pointsBadges:
    report
  • TomLiotta
    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
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following