Just to have an open source method also. If you have IBM YUM binaries installed and use the file tools they have, you can get something like the below. No better than the queries from RTVDSKINF, just wanted to put another method into the archives. Paths are hard coded in case you don't have these as your default binaries.
bash-4.4$ /qopensys/pkgs/bin/du -h --exclude=Medtron --exclude=QSYS.LIB --exclude=QIBM --exclude=QNTC --exclude=QFileSvr.400 | /qopensys/pkgs/bin/sort -h > ~/medtron_dir_size.txt
produces a file like this (this is the bottom of the file) Subdirectories are included in parent directories. So /kevin has 25g total, and 21g of that is in the cmc_os subdirectory.
11G./imagecatalog
11G./imagecatalog/ptfs
13G./Impact/Original Packs from Clients/Archives - Combined ERA Files
13G./spool/Prior Years/2013
13G./spool/Prior Years/2014
14G./Impact/Archives - MDS9S Not On Split Rpt
14G./Impact/Archives - MDS9S Not On Split Rpt/2016
15G./Impact/Original Packs from Clients/Archives - DScan
15G./mirth/mirthdb
15G./mirth/mirthdb/seg0
17G./mirth
19G./neic
19G./spool/ur
21G./Impact/Original Packs from Clients/Archives - ERA
21G./kevin/cmc_os
24G./Impact/Archives - Packs/2017
25G./kevin
30G./Impact/Archives - Combined ERA Files
30G./spool/Prior Years
32G./neicspool
34G./Impact/Archives - DScan
41G./Impact/Original Packs from Clients/Archives - Packs
51G./Impact/Archives - ERA
65G./spool
91G./Impact/Original Packs from Clients
116G./Impact/Archives - Packs
344G./Impact
525G.
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Bdietz400
Sent: Thursday, January 10, 2019 12:22 PM
To: Midrange Systems Technical Discussion
Subject: Re: How to obtain size of ifs directories and sub-directories
Have a look in the archives. I’m pretty sure there is som SQL there that will run over the output of the RTVDIRINF files and provide the detail you are looking for
--
Bryan Dietz
On Jan 9, 2019, at 8:35 AM, Alan Shore <ashore@xxxxxxxx> wrote:
Hi everyone
We are at V7r3
I am googling this at the moment
How to obtain the sizes of directories and sub-directories of the ifs,
and I have seen the commands RTVDIRINF and PRTDIRINF, but you have to
specify the individual ifs directory What I am looking for is one program that will collect this information (preferably to a file) for ALL the ifs directories and sub-directories Does anyone know if such an animal exists?
As always all answers gratefully accepted
Alan Shore
E-mail : ASHORE@xxxxxxxx
Phone [O] : (631) 200-5019
Phone [C] : (631) 880-8640
'If you're going through hell, keep going.'
Winston Churchill
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at
https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
https://amazon.midrange.com
[
https://www.medtronsoftware.com/img/MedtronMinilogo.bmp] Kevin Bucknum
Senior Programmer Analyst
MEDDATA / MEDTRON
120 Innwood Drive
Covington LA 70433
Local: 985-893-2550
Toll Free: 877-893-2550
https://www.medtronsoftware.com
CONFIDENTIALITY NOTICE
This document and any accompanying this email transmission contain confidential information, belonging to the sender that is legally privileged. This information is intended only for the use of the individual or entity named above. The authorized recipient of this information is prohibited from disclosing this information to any other party and is required to destroy the information after its stated need has been fulfilled. If you are not the intended recipient, or the employee of agent responsible to deliver it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or action taken in reliance on the contents of these documents is STRICTLY PROHIBITED. If you have received this email in error, please notify the sender immediately to arrange for return or destruction of these documents.
As an Amazon Associate we earn from qualifying purchases.