× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



James,

Check out IBM's  IFS Tools at

ftp://testcase.boulder.ibm.com/as400/fromibm/ApiSamples/ifstool.savf

The QRYIFSLIB tool allows you to send to an output file the result of each file and directory in the IFS. You can then list the data as you need. If you run QRYIFSLIB without parameters the program displays help data that even includes a SQL statement to list the size of each directory on the IFS.

Hope this helps,

Regards,

Luis Rodríguez
IBM Certified Systems Expert - eServer i5 iSeries
Caracas, Venezuela

------------------------------

message: 8
date: Fri, 17 Feb 2006 18:50:56 -0600
from: Pete Hall <pbhall@xxxxxxxxxxxxx>
subject: Re: How to list the size of each IFS directory in V5R2

You could run ls -l in qshell, which returns the file sizes. ls -lR to
recurse directories

ls -lR /qdls/* when run from the root will return the sizes of all the
files in any directory under qdls. ls -l /qdls/* will only return the
top level. You'll need a script to add them up though if you want a
total. Awk is great for that.

--

Pete Hall
pbhall@xxxxxxxxxxxxx
http://www.pbhall.us/



fu_james@xxxxxxxxxxxxxx wrote:
As we can list the size and detail file info of a library with "PRTDSKINF"
command, is there any way to list the size and detail info of a
IFS directory in V5R2. Thanks...

Best Regards.

James Fu

TDL Group Corp. (Tim Hortons)
Oakville, Ontario
Web: http://www.timhortons.com




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.