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: 8797
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: 8797
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts DFHPI1008 JSON generation failed COBOL Programming 0
No new posts Started task using a generation dataset JCL & VSAM 7
No new posts Build dataset list with properties us... PL/I & Assembler 4
No new posts Merging 2 datasets into one DFSORT/ICETOOL 1
Search our Forums:

Back to Top