Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Given a Qualifier : Identify Total File Size

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Given a Qualifier : Identify Total File Size
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: Chennai

PostPosted: Mon Oct 29, 2007 4:27 pm    Post subject:
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

Site Director


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

PostPosted: Mon Oct 29, 2007 8:29 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon Oct 29, 2007 11:22 pm    Post subject:
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 Moderator


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

PostPosted: Mon Oct 29, 2007 11:49 pm    Post subject:
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:

http://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: 1703
Location: Australia

PostPosted: Tue Oct 30, 2007 6:20 am    Post subject: Reply to: Given a Qualifier : Identify Total File Size
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: 1703
Location: Australia

PostPosted: Tue Oct 30, 2007 6:27 am    Post subject: Reply to: Given a Qualifier : Identify Total File Size
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Tue Oct 30, 2007 1:21 pm    Post subject: Reply to: Given a Qualifier : Identify Total File Size
Reply with quote

in case that the dfsort dcollect samples should not be enough

take a look at cbt FILE 206 , at www.cbttape.org,
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Could we identify the called modules ... elixir1986 COBOL Programming 5 Fri Jul 14, 2017 1:53 am
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us