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.
calculating esds file size using tracks and extent info
-
- Global moderator
- Posts: 3720
- Joined: Sat Dec 19, 2009 8:32 pm
- Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
- Referer: other forum
- Location: Dubuque, Iowa, USA
Re: calculating esds file size using tracks and extent info
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?
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?
-
- Posts: 7
- Joined: Wed Aug 19, 2009 11:43 pm
- Skillset: jcl db2 basics, cobol basics
- Referer: by browsing on net
Re: calculating esds file size using tracks and extent info
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
Can anyone tell me the way to know the files size in gigabytes/bytes with above mentioned parameters for file
-
- Global moderator
- Posts: 3720
- Joined: Sat Dec 19, 2009 8:32 pm
- Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
- Referer: other forum
- Location: Dubuque, Iowa, USA
Re: calculating esds file size using tracks and extent info
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.
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: calculating esds file size using tracks and extent info
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. . .
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.
d.sch.
Re: calculating esds file size using tracks and extent info
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.
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.
-
- Global moderator
- Posts: 3720
- Joined: Sat Dec 19, 2009 8:32 pm
- Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
- Referer: other forum
- Location: Dubuque, Iowa, USA
Re: calculating esds file size using tracks and extent info
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).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.
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Need to check whether file is ESDS file or not by using REXX
by Devrana » Sat Oct 05, 2024 2:28 pm » in CLIST & REXX - 6
- 3214
-
by sergeyken
View the latest post
Tue Oct 08, 2024 5:25 pm
-
-
- 3
- 2003
-
by jcdm
View the latest post
Thu Aug 18, 2022 1:25 pm
-
- 4
- 3282
-
by socker_dad
View the latest post
Fri Dec 31, 2021 5:28 am
-
- 1
- 5333
-
by Robert Sample
View the latest post
Tue Oct 04, 2022 7:36 pm
-
-
EZIOE004 Logical I/O error on file occurred reading VB file
by savitha_y » Mon Feb 15, 2021 7:54 pm » in CA-Easytrieve - 3
- 4964
-
by savitha_y
View the latest post
Wed Feb 17, 2021 5:02 am
-