IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Given a Qualifier : Identify Total File Size


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
chinnarajr

New User


Joined: 01 Jun 2007
Posts: 16
Location: Chennai

PostPosted: Mon Oct 29, 2007 2:41 pm
Reply with quote

hi,

i have a query to identify the total file size with a specifiec high level qualifier.

For example,
In my developement region, i want to find the total size of the files whose names are starting with the qualifier 'DEV.REG'.This includes all kinds of files(Flat,VSAM,GDG)

Please let us know if there is any JCL or Utility like IDCAMS or any other method is available for the same.

Thanks in advance,
Chinna.
Back to top
View user's profile Send private message
hemanth.nandas

Active User


Joined: 18 Aug 2007
Posts: 120
Location: India

PostPosted: Mon Oct 29, 2007 4:27 pm
Reply with quote

Hi Chinna,

Quote:
In my developement region, i want to find the total size of the files whose names are starting with the qualifier 'DEV.REG'.This includes all kinds of files(Flat,VSAM,GDG)


As I know, there are no Utilities which support your requirement.

But you have to do it in 3.4. I meant, Go To 3.4, Give High qualifier and Press Enter, It will displays all Datasets which are starts from High Qualifier. There Use Short Info command (S) against each dataset. You can find details what you wanted.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Oct 29, 2007 8:29 pm
Reply with quote

Hello,

If you use IDCAMS in batch, you can create a "report" of the datasets you are interested. With a bit of code you can read the "report" and calculate the total space used. This will work for dasd files.

If you want to find how much data is stored on cart/tape, you should be able to get the total from the tape library system (or the storage management people who support the tape library system).
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Oct 29, 2007 11:22 pm
Reply with quote

Look at the Smart Tricks document that Frank has published, I think it has something to do just that.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Mon Oct 29, 2007 11:49 pm
Reply with quote

There is a trick for "Dataset counts and space by high level qualifier", but it requires some pre-processing of DCOLLECT records so it may or may not fit the requirement.

For reference, the DFSORT Tricks are at:

www.ibm.com/servers/storage/support/software/sort/mvs/tricks/
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Tue Oct 30, 2007 6:20 am
Reply with quote

Hi,
if you can obtain a list of the dataset names as previously mentioned using IDCAMs, you can then input the file containing the fully qualified dataset names into the command LISTDSI

You should be able to call the command via REXX or CLIST.


eg.
X = LISTDSI("'"DSN"' NORECALL ")

Gerry
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Tue Oct 30, 2007 6:27 am
Reply with quote

Hi,
I forgot to mention that LISTDSI does not support TAPE or VSAM files.



Gerry
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Oct 30, 2007 1:21 pm
Reply with quote

in case that the dfsort dcollect samples should not be enough

take a look at cbt FILE 206 , at Use [URL] BBCode for External Links,
it contains a REXX application to process dcollect data...
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top