× 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.


  • Subject: Re: How to obtain size of ifs directories and sub-directories
  • From: Bryan Dietz <bdietz400@xxxxxxxxx>
  • Date: Tue, 15 Jan 2019 10:37:53 -0500
  • Arc-authentication-results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SVlTyMf5; spf=pass (google.com: domain of bdietz400@xxxxxxxxx designates 209.85.220.41 as permitted sender) smtp.mailfrom=bdietz400@xxxxxxxxx; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject:reply-to :dkim-signature; bh=nhRcyfWLxdT0KEtZJ9AV1C/AwjrjRQXZBPeU8SL8ClY=; b=OsSBod60yQcJCN/IvWqzHWC3g+ujL0apczHeLkBL4PQ6AagpWNTEmLKPZs1DDAvbmM gT2ia6i05DF6EoMZ4MGz17FCMycAvTbIBBVgAqGdMYFSoqtJbFvoJZJjF2nGEzlCcf2X jSvA7S2vje242O+m/JLZGHTfblFOPe/KblS20bIuUe2vgJ3XWPlLel+cNUNcPUoc3h3P MqTq5X4HIk4eGuCbkxgQcrUVeBmMtmewQlKv+g2U0y2y5imq3vbDyXq8RgIwzp0bdDVX zeZbVUgnPTLzuGKY14dt723Yq0DCtFq1JCYaEALH7BQLm51rX77ytE1n/R7SXQ7ByQlJ Zgsg==
  • Arc-seal: i=1; a=rsa-sha256; t=1547566676; cv=none; d=google.com; s=arc-20160816; b=0SJU9kFfQgDSL65CaTB2ZMdb0P9XY4ml/HGMb6mqcEOGneod+EySl5AZvMnWxmmRCs XpHqF+IFW5J25+vHb7xRnU1F/iKLv0UxfAr+1Jky88QKtBFucZKq+CbCvl8TvAHSlhm5 RiD/VG9tmks8pPFXVGZ/9p/wduKOQtQ4iflCWXKLHugxTJ2t+CpLofz0IPyTWVIa384A GrIt6XkZWok3z1S+4iejzORZhVsc6/W7VIlz6l3CB2/3+xT70srmvBnrjhDbpx8VdRT6 8saUdGjnBt8oBQx1xo9D3dBCpkqXeAg484R21VRDoudIWKDZQGxDRwyxrW8neXKnEvgu 59PA==
  • List-archive: <https://archive.midrange.com/midrange-l/>
  • List-help: <mailto:midrange-l-request@lists.midrange.com?subject=help>
  • List-id: Midrange Systems Technical Discussion <midrange-l.lists.midrange.com>
  • List-post: <mailto:midrange-l@lists.midrange.com>
  • List-subscribe: <https://lists.midrange.com/mailman/listinfo/midrange-l>, <mailto:midrange-l-request@lists.midrange.com?subject=subscribe>
  • List-unsubscribe: <https://lists.midrange.com/mailman/options/midrange-l>, <mailto:midrange-l-request@lists.midrange.com?subject=unsubscribe>

I like this one, thanks.

I think I made the ifs_bytes_allocated easier to read:

varchar_format((SUM(QEZALCSIZE)/2**20),'999,999,999.999') AS IFS_MEGABYTES_ALLOCATED

Bryan

Matt Shea wrote on 1/11/2019 2:23 PM:
Apologies for jumping in late on this thread, or if I've already missed the answer.

Am I missing something, but won't RTVDIRINF work for this ( I don't recall which version this was introduced). There is also the 'Analyze IFS Storage Consumption' example query in Run SQL Scripts of ACS. This query can take a bit to run, but will analyze your IFS folders and subfolders returning counts and sizes of their contents.

The final resulting list is generated from:
SELECT QEZDIRNAM1 AS IFS_DIRECTORY,
COUNT(*) AS IFS_OBJECT_COUNT,
SUM(QEZALCSIZE) AS IFS_BYTES_ALLOCATED
FROM IFSINFO.IFSINFO2O O INNER
JOIN IFSINFO.IFSINFO2D D ON O.QEZDIRIDX = D.QEZDIRIDX
GROUP BY QEZDIRNAM1
ORDER BY 3 DESC;


Thanks,
Matt

subject: RE: How to obtain size of ifs directories and sub-directories

Nice.

I am also creating an IFS crawler as a Native .Net C# example. Much of the granular dir and file handling functionality is built-in to .Net.

My example crawled about 200000 files in 2 minutes, although I am going to add a thread throttle setting since it chews up as much CPU as it can get ?

Found a gotcha though because the DIR list functions will iteratively crawl directories set up as symbolic links so I had to put an extra check in for that to prevent endless loops when crawling symbolic links.

Regards,
Richard Schoen
Director of Document Management
e. richard.schoen@xxxxxxxxxxxxxxx
p. 952.486.6802
w. helpsystems.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.