How to calculate the VSAM file size in GB?

Virtual Storage Access method - ESDS, KSDS, RRDS & LDS. Basic direct access method, Basic sequential -, Queued sequential -, Basic partitioned -, Indexed sequential -, Object - access method.
Post Reply
Sushma Rahul
Registered Member
Posts: 11
Joined: Tue Dec 22, 2015 2:30 pm

How to calculate the VSAM file size in GB?

Post by Sushma Rahul »

Hi,

How to calculate the VSAM file size in GB?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1896
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: How to calculate the VSAM file size in GB?

Post by Robert Sample »

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.
Sushma Rahul
Registered Member
Posts: 11
Joined: Tue Dec 22, 2015 2:30 pm

Re: How to calculate the VSAM file size in GB?

Post by Sushma Rahul »

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?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1896
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: How to calculate the VSAM file size in GB?

Post by Robert Sample »

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.
Post Reply

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

Register

Sign in

Return to “SMS & VSAM and BDAM, BSAM, QSAM, BPAM, ISAM, OAM.”