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
 

 

GDG latest few generations

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
banu_a

New User


Joined: 13 Dec 2006
Posts: 1
Location: chennai

PostPosted: Thu Dec 14, 2006 2:01 pm    Post subject: GDG latest few generations
Reply with quote

Hi,

I have a GDG with 100 generation. I would like to use only the last 15 generations of the GDG as an input file in my job. is it possible to use them without hard coding like the combination of GDG(0) to GDG(-14) ? I know I can use the GDG base as input if i want to use data in all the generations of the GDG. I want to use only the last 15 generations.
Back to top
View user's profile Send private message

superk

Moderator Team Head


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

PostPosted: Thu Dec 14, 2006 6:06 pm    Post subject: Re: GDG latest few generations
Reply with quote

banu_a wrote:
is it possible to use them without hard coding like the combination of GDG(0) to GDG(-14)?


Nope. The only other option is to list out all 100 generations (LISTCAT), select the last 15 from the list (DFSORT), and then dynamically build the required DD statement for your job (JCLLIB, INCLUDE).
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 Compare each GDG Generations to other... Ayyappa1 JCL & VSAM 13 Tue Jun 28, 2016 1:48 pm
No new posts Editing "member generations"... Ricardo Viegas TSO/ISPF 1 Tue Dec 29, 2015 7:27 pm
No new posts SORT input file based on latest record maxsubrat DFSORT/ICETOOL 16 Wed Dec 02, 2015 8:02 pm
No new posts Fetch the latest record from a table ... maxsubrat DB2 8 Tue Dec 01, 2015 7:13 pm
No new posts Want to fetch the latest record from ... maxsubrat DFSORT/ICETOOL 2 Tue Dec 01, 2015 7:10 pm


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