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

How Do I List generation Datasets


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
T.O.

New User


Joined: 27 Apr 2006
Posts: 23

PostPosted: Wed May 16, 2007 6:27 pm
Reply with quote

I want to list a bunch of (0) generation datasets and write it to a dataset.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed May 16, 2007 6:28 pm
Reply with quote

IDCAMS LISTCAT, or the TSO command LISTCAT.
Back to top
View user's profile Send private message
T.O.

New User


Joined: 27 Apr 2006
Posts: 23

PostPosted: Wed May 16, 2007 6:54 pm
Reply with quote

superk wrote:
IDCAMS LISTCAT, or the TSO command LISTCAT.


But how do I get it to list only the current generation of a dataset and not all ?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8798
Location: Welsh Wales

PostPosted: Wed May 16, 2007 10:59 pm
Reply with quote

You can't.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed May 16, 2007 11:05 pm
Reply with quote

There's only one alternative I can think of, and it would require a job with one unique DD statement for each generation-0 dataset you want to inquire on, and it would require some knowledge of REXX or CLIST functrions.

Could you meet these requirements for your process?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8798
Location: Welsh Wales

PostPosted: Wed May 16, 2007 11:06 pm
Reply with quote

Or maybe DFdss where you can filter relative generations

If I remember correctly. Might be worth a browse within the fine manual.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts REXX to get all Dataset names from a ... CLIST & REXX 5
No new posts PDS member list with stats JCL & VSAM 6
No new posts GDG generation name to GDG Base name ... DFSORT/ICETOOL 3
No new posts JES datasets IO Error ABENDS & Debugging 3
No new posts Concatenate 2 input datasets and give... JCL & VSAM 2
Search our Forums:


Back to Top