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

GDG latest few generations


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Thu Dec 14, 2006 6:06 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare latest 2 rows of a table usin... DB2 1
No new posts Rexx to list generations of GDGs and ... CLIST & REXX 3
No new posts XMITIP Latest Version JCL & VSAM 2
No new posts How to fetch the latest record from a... DFSORT/ICETOOL 8
No new posts Need SQL for two latest records havin... DB2 10
Search our Forums:

Back to Top