Get the attributes of VSAM dataset.
-
Priyank Sharma
- Registered Member
- Posts: 11
- Joined: Thu Apr 17, 2014 2:07 pm
Get the attributes of VSAM dataset.
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.
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.
- Robert Sample
- Global Moderator

- Posts: 1905
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Get the attributes of VSAM dataset.
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.
There is no easy way to do this since there are no standard ways to name data sets.
-
Priyank Sharma
- Registered Member
- Posts: 11
- Joined: Thu Apr 17, 2014 2:07 pm
Re: Get the attributes of VSAM dataset.
Thanks Robert. This is for a valuation we are doing. And there were similar question we had. Can not this be automated?
- Robert Sample
- Global Moderator

- Posts: 1905
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Get the attributes of VSAM dataset.
You could probably use DCOLLECT but it could take a while to set it up correctly.
- myoggradio
- Registered Member
- Posts: 17
- Joined: Tue Jul 30, 2024 8:15 pm
Re: Get the attributes of VSAM dataset.
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.
-
Priyank Sharma
- Registered Member
- Posts: 11
- Joined: Thu Apr 17, 2014 2:07 pm
-
Priyank Sharma
- Registered Member
- Posts: 11
- Joined: Thu Apr 17, 2014 2:07 pm
Re: Get the attributes of VSAM dataset.
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.
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