IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Listing EVERY Dataset on a system


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
DaveV

New User


Joined: 12 Apr 2016
Posts: 7
Location: United States

PostPosted: Thu Jan 09, 2020 7:48 pm
Reply with quote

Hi all, new here. I am not sure which sub-forum this belongs in so I will start here. We have a mainframe which needs a major DASD/Dataset cleanup. I would like to extract a listing of all datasets that are cataloged (and this that aren't if possible) into a flat file and download it to my PC do some analysis. I know how to get a listing of all catalogs, then dump the contents of each catalog via IDCAMS/LISTCAT but the listing is in multi-line format and not conducive to PC analysis. The Info I would like is creation+expiration date, volume, size and anything else relevant. Even if I could do a list via TSO option 3.4 and save the output so I could download it, that would be great. Any and all advice/ideas are appreciated!
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Thu Jan 09, 2020 8:33 pm
Reply with quote

DCOLLECT would be one way to do it -- check out the Access Method Services manual.
Back to top
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 734
Location: Denmark

PostPosted: Thu Jan 09, 2020 8:37 pm
Reply with quote

Install the VTOC pgm from cbttape.org file 112. I gives you a nice customizable list. It is based on the VTOC (obviously) but one option is to check for cataloged status.
Back to top
View user's profile Send private message
David Robinson

Active User


Joined: 21 Dec 2011
Posts: 199
Location: UK

PostPosted: Fri Jan 10, 2020 2:27 pm
Reply with quote

DaveV wrote:
Even if I could do a list via TSO option 3.4 and save the output so I could download it, that would be great. Any and all advice/ideas are appreciated!


You know you can do that, right? When your list is displayed, enter the SAVE LIST command. A userid.LIST.DATASETS dataset will be created.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1744
Location: Tirupur, India

PostPosted: Fri Jan 10, 2020 11:04 pm
Reply with quote

Hi David,
The ISPF 3.4 option may not suitable in this case because the TS wants list of all datasets, and to list datasets in 3.4 we need minimum of 1 qualifier in the dataset name.
It may not be possible to manually put in all available HLQ to get a list.

However I agree that SAVE LIST command saves the 3.4 list and is very handy.

For the initial question, I think IDCAMS DCOLLECT is one of the good sources and I would go with processing it.

Regards,
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts batch SFTP job using AOPBATCH unable ... All Other Mainframe Topics 7
No new posts System add a USER parm when job submi... TSO/ISPF 4
No new posts Reading Empty Dataset DFSORT/ICETOOL 5
No new posts Mainframe Dataset Binary or ASCII Mainframe Interview Questions 4
No new posts SPOOL to Mainframe dataset in batch mode JCL & VSAM 7
Search our Forums:

Back to Top