Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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: 8618
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: 4650
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: 8618
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 REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
No new posts SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Edit large number of datasets (QSAM) zh_lad TSO/ISPF 3 Tue Apr 04, 2017 6:08 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us