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

DSLIST in batch?


IBM Mainframe Forums -> JCL & VSAM
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: Wed Oct 13, 2021 8:07 pm
Reply with quote

Hi all - is there a simple way to capture the output of 3.4 (DSLIST) in batch? I know how to run LISTCAT and am aware of DCOLLECT as well, but what I am looking for is to produce a simple list of ALL datasets on our system in a simple linear format that I can download to a text file on the PC. The DSN names would be sufficient, but date created/date referenced would be nice as well. Any thoughts/responses appreciated! icon_smile.gif
Back to top
View user's profile Send private message
Joerg.Findeisen

Active Member


Joined: 15 Aug 2015
Posts: 623
Location: Bamberg, Germany

PostPosted: Wed Oct 13, 2021 8:24 pm
Reply with quote

See ibmmainframes.com/about68154.html
Back to top
View user's profile Send private message
DaveV

New User


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

PostPosted: Wed Oct 13, 2021 8:37 pm
Reply with quote

Is there another way besides REXX?
Back to top
View user's profile Send private message
sergeyken
Warnings : 2

Senior Member


Joined: 29 Apr 2008
Posts: 1208

PostPosted: Wed Oct 13, 2021 10:59 pm
Reply with quote

DaveV wrote:
Hi all - is there a simple way to capture the output of 3.4 (DSLIST) in batch? I know how to run LISTCAT and am aware of DCOLLECT as well, but what I am looking for is to produce a simple list of ALL datasets on our system in a simple linear format that I can download to a text file on the PC. The DSN names would be sufficient, but date created/date referenced would be nice as well. Any thoughts/responses appreciated! icon_smile.gif

Use either DSLIST, or LISTCAT, or DCOLLECT, - whatever works for you, and then process its output using any utility like SYNCSORT/DFSORT. You may be satisfied.
Back to top
View user's profile Send private message
sergeyken
Warnings : 2

Senior Member


Joined: 29 Apr 2008
Posts: 1208

PostPosted: Thu Oct 14, 2021 12:33 am
Reply with quote

Again, and again, and again:

This topic has nothing to do with neither JCL, nor VSAM.
Back to top
View user's profile Send private message
Joerg.Findeisen

Active Member


Joined: 15 Aug 2015
Posts: 623
Location: Bamberg, Germany

PostPosted: Thu Oct 14, 2021 3:46 am
Reply with quote

DaveV wrote:
Is there another way besides REXX?

File #112 from CBTTAPE.ORG for ex.
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 509
Location: London

PostPosted: Tue Oct 19, 2021 2:34 pm
Reply with quote

There's various OEM products out there that could do this so you you should check with your Storage or Sysprog team, or perhaps your Performance team to see what is available in your site.

NOTE: Including creation and last reference dates means accessing the physical volumes to get that which will make it take a lot longer than just a catalog search for names only.
Back to top
View user's profile Send private message
Joerg.Findeisen

Active Member


Joined: 15 Aug 2015
Posts: 623
Location: Bamberg, Germany

PostPosted: Wed Oct 20, 2021 10:24 am
Reply with quote

Basically you can also use NAVIQUEST (ISMF in Batch), although it might take ages to complete on large installations.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Mainframe batch Job or REXX to get VT... CLIST & REXX 7
No new posts File-aid batch how to repeat a line... Compuware & Other Tools 2
No new posts How to pass arguments in a ISPSTART c... CLIST & REXX 6
No new posts current batch plan DB2 3
No new posts ISPF Edit Macro with profile commands... TSO/ISPF 14
Search our Forums:

Back to Top