Page 1 of 1

Get the attributes of VSAM dataset.

Posted: Mon May 19, 2025 8:47 am
by Priyank Sharma
Hi,

How can we get the attributes of all the VSAMs which are available on a mainframe? How can IDCAMS work for this kind of a situation? Please advise. 

Re: Get the attributes of VSAM dataset.

Posted: Wed May 21, 2025 7:25 pm
by Robert Sample
Are you really sure you want this?  There may thousands or tens of thousands of VSAM data sets on any given mainframe.  Your output may run several million lines.

There is no easy way to do this since there are no standard ways to name data sets.

Re: Get the attributes of VSAM dataset.

Posted: Mon May 26, 2025 11:00 am
by Priyank Sharma
Thanks Robert. This is for a valuation we are doing. And there were similar question we had. Can not this be automated? 

Re: Get the attributes of VSAM dataset.

Posted: Thu May 29, 2025 6:22 pm
by Robert Sample
You could probably use DCOLLECT but it could take a while to set it up correctly.

Re: Get the attributes of VSAM dataset.

Posted: Mon Jul 21, 2025 5:48 pm
by myoggradio
You can use IDCAMS with LISTC. First you do a LISTC on the Mastercatalog to see which User Catalogs exists. Then LISTC every User Catalog to see the VSAM Attributtes for each Dataset. Please note that the Mastercat also may contain VSAM Dataset Attributtes.

Re: Get the attributes of VSAM dataset.

Posted: Sat Jul 26, 2025 1:36 pm
by Priyank Sharma
Does that mean Mastercatalog itself is a VSAM?

Re: Get the attributes of VSAM dataset.

Posted: Sat Jul 26, 2025 1:36 pm
by Priyank Sharma
Robert Sample" wrote: Thu May 29, 2025 6:22 pm You could probably use DCOLLECT but it could take a while to set it up correctly.
Thank you Robert.