calculating esds file size using tracks and extent info



Help for IBM's record-oriented filesystem VSAM, ESDS, KSDS, RRDS, LDS and Storage management Subsystems

calculating esds file size using tracks and extent info

Postby Savita » Wed Apr 21, 2010 10:43 pm

Hi,
Can anyone tell me how to calculate size of a esds file using the information such as total tracks and extents used. Suppose my file is esds with tracks used: 7500 and extents: 3, files has ang and max rec length: 4096.
Savita
 
Posts: 7
Joined: Wed Aug 19, 2009 11:43 pm
Has thanked: 0 time
Been thanked: 0 time

Re: calculating esds file size using tracks and extent info

Postby Robert Sample » Wed Apr 21, 2010 11:09 pm

Go to http://www.redbooks.ibm.com and find the VSAM Demystified manual. Read it.

Are you wanting to know the allocated space for the ESDS? Run a LISTCAT.

Are you wanting to know the space used within the allocated space for the ESDS? Run a LISTCAT.

Why are you wanting to calculate anything when the system will provide you the data you want already?
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: calculating esds file size using tracks and extent info

Postby Savita » Thu Apr 22, 2010 12:10 pm

Actually i want to know the esds file size in giga bytes...as we can't ftp vsam file to windows..i wanted to know if there is any to calculate files size in giga bytes..to have data accordingly managed in file and to know the size of file in gigabytes i asked this query..
Can anyone tell me the way to know the files size in gigabytes/bytes with above mentioned parameters for file
Savita
 
Posts: 7
Joined: Wed Aug 19, 2009 11:43 pm
Has thanked: 0 time
Been thanked: 0 time

Re: calculating esds file size using tracks and extent info

Postby Robert Sample » Thu Apr 22, 2010 5:52 pm

Do a LISTCAT. Find the High Used RBA (HI-U-RBA) in the LISTCAT output. This is in bytes, so divide by 1024. Divide by 1024 again. Divide by 1024 again. The number has now been converted to gigabytes.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: calculating esds file size using tracks and extent info

Postby dick scherrer » Thu Apr 22, 2010 11:40 pm

Hello,

If you are unwilling to run IDCAMS/LISTCAT and use that info, you can always SORT (copy) the vsam file to a dummy output and get numbers you can use from the informational output generated by the copy. . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: calculating esds file size using tracks and extent info

Postby Bad Man » Mon Apr 26, 2010 5:49 pm

Please pardon my interference and correct me if I am wrong.

Savita How did u get the above said parameters... Tracks=7500( I think using an info on data)

I did a listcat for a random file and found

HI-A-RBA---------1290240
HI-U-RBA----------169984

I read VSAM demystified and it says:

A RBA is the allocated space
U RBA is the used space

Also there is a way to convert tracks to GB but I think when dealing with VSAM LISTCAT is your good option.
1 track = 56664 bytes.
Bad Man
 
Posts: 96
Joined: Sun Apr 04, 2010 2:20 pm
Has thanked: 0 time
Been thanked: 0 time

Re: calculating esds file size using tracks and extent info

Postby Robert Sample » Mon Apr 26, 2010 7:19 pm

Also there is a way to convert tracks to GB but I think when dealing with VSAM LISTCAT is your good option.
1 track = 56664 bytes.
This will only give you an approximation. Using the block size (CI size for a VSAM file), and GX26-4577 (the 3390 reference guide), you can find the exact number of bytes -- but this does require the ability to determine the number of blocks per track (12 4096 blocks fit in a track, for example -- so with a 4K CI or block size, a file is only using 48152 bytes of the 56664 per track).
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times


Return to VSAM/SMS

 


  • Related topics
    Replies
    Views
    Last post