Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How Do I List generation Datasets

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How Do I List generation Datasets
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

Moderator Team Head


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

PostPosted: Wed May 16, 2007 6:28 pm    Post subject: Re: How Do I List Datasets
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    Post subject: Re: How Do I List Datasets
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: 8593
Location: Back in jolly old England

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

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

Moderator Team Head


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

PostPosted: Wed May 16, 2007 11:05 pm    Post subject: Re: How Do I List generation Datasets
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: 8593
Location: Back in jolly old England

PostPosted: Wed May 16, 2007 11:06 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts DUMP DATASETS VS TRACE DATASETS! lind sh CICS 4 Tue Dec 06, 2016 11:31 pm
No new posts Cobol list of programs being called biswajit.dattagupta COBOL Programming 5 Tue Nov 01, 2016 2:10 am
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm
No new posts reorder screeNS using SWAP LIST? mrsidhu12 TSO/ISPF 5 Thu Sep 01, 2016 2:19 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us