Hi,
How to calculate the VSAM file size in GB?
How to calculate the VSAM file size in GB?
-
- Registered Member
- Posts: 11
- Joined: Tue Dec 22, 2015 2:30 pm
- Robert Sample
- Global Moderator
- Posts: 1903
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: How to calculate the VSAM file size in GB?
There are different types of VSAM data sets, but in general -- just as with sequential data sets -- you take the average record size and multiply by the number of records. Divide the result by 1024 to get KB, divide again by 1024 to get MB, and divide another time to get GB.
If you have an alternate index, you'll need to compute that separately. And you really should be referencing the IBM Redbook VSAM Demystified which explains almost anything you want to know about VSAM.
If you have an alternate index, you'll need to compute that separately. And you really should be referencing the IBM Redbook VSAM Demystified which explains almost anything you want to know about VSAM.
-
- Registered Member
- Posts: 11
- Joined: Tue Dec 22, 2015 2:30 pm
Re: How to calculate the VSAM file size in GB?
Thanks Robert.
There is no way directly in mainframes using which we can find the GB value? And will different VSAM file make a difference?
There is no way directly in mainframes using which we can find the GB value? And will different VSAM file make a difference?
- Robert Sample
- Global Moderator
- Posts: 1903
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: How to calculate the VSAM file size in GB?
With mainframes, there are usually several different ways to do something. You could use DCOLLECT, you could approximate the total by going to ISPF 3.4 to find the tracks / cylinders allocated and multiplying by the appropriate value, and so forth.
If the VSAM data set has alternate indexes, they can add up to quite a lot of space by themselves.
If the VSAM data set has alternate indexes, they can add up to quite a lot of space by themselves.
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute