Page 1 of 1

Calculating the size of many VSAM files.

Posted: Fri Feb 26, 2016 1:06 pm
by yuvaraj43
Hi,

We are part of a team which is working on a migration project. In one of the process, we need to analyze the size of a many VSAM dataset. Is there some way out for this? Can we write some JCL to do such a task in a single go?

Any help on this would help us to move forward.

Re: Calculating the size of many VSAM files.

Posted: Fri Feb 26, 2016 6:20 pm
by Robert Sample
Use IDCAMS to extract the attributes for each VSAM data set (only Unix System Services in z/OS has files). Write the output into a data set.
Write a program in the language of your choice to extract the relevant data from the data set.

Re: Calculating the size of many VSAM files.

Posted: Mon Mar 07, 2016 12:21 pm
by yuvaraj43
Robert Sample wrote:Write a program in the language of your choice to extract the relevant data from the data set.
What is the relevant data you are referring to? Can you please help me about that? Are you referring to HURBA?

Re: Calculating the size of many VSAM files.

Posted: Mon Mar 07, 2016 5:40 pm
by Robert Sample
It really depends on what you mean by "size". HARBA gives the allocated while HURBA gives the used. Many times allocated is a better measure of size as the used may fluctuate.