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
 

 

Deleting versions in a GDG

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

New User


Joined: 24 Nov 2005
Posts: 49
Location: chennai

PostPosted: Sat Apr 25, 2009 7:59 pm    Post subject: Deleting versions in a GDG
Reply with quote

In a gdg i have 50 generations..i need to delete the last 30 generations .is it possible


regards,
akash
Back to top
View user's profile Send private message

Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Sat Apr 25, 2009 9:06 pm    Post subject:
Reply with quote

AFAIK, you have to delete them one by one.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Sat Apr 25, 2009 9:52 pm    Post subject:
Reply with quote

Quote:
you have to delete them one by one.


unless your DSN is in the form for gen number instead of relative
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: Sat Apr 25, 2009 9:55 pm    Post subject:
Reply with quote

Or use IDCAMS ALTER to reduce the LIMIT and do it in one quick batch job.
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: Sun Apr 26, 2009 3:16 am    Post subject: Reply to: Deleting versions in a GDG
Reply with quote

Of course, in the amount of time it took the OP to type the question, and then wait for a response, they could've created a list of all the generations, edited it to add the DELETE command in front, and than ran an IDCAMS or TSO job using that data. Would've been all done in about a minute.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Sun Apr 26, 2009 5:06 am    Post subject:
Reply with quote

a simple D line command on a 3.4 would have done it, also.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Sun Apr 26, 2009 9:38 am    Post subject:
Reply with quote

Probably I misunderstood the request, may be some one can help me to understand.

OP says:
Quote:
i need to delete the last 30 generations.
(emphasis added by me) I believe by "last 30" he means . . .starting from 50th, 49th . . .up to 21st generations and if IDCAMS ALTER is used that will "delete" 1st, 2nd . . . up to 30th generations, right? icon_confused.gif
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: Sun Apr 26, 2009 1:14 pm    Post subject:
Reply with quote

Anuj D. wrote:
Probably I misunderstood the request, may be some one can help me to understand.

OP says:
Quote:
i need to delete the last 30 generations.
(emphasis added by me) I believe by "last 30" he means . . .starting from 50th, 49th . . .up to 21st generations and if IDCAMS ALTER is used that will "delete" 1st, 2nd . . . up to 30th generations, right? icon_confused.gif

Using ALTER to change the LIMIT will change the number of generations retained in the GDG base. By default the oldest generations will be dropped from the base, thus retaining the latest nn generations.

I read the req as dropping the 30 oldest, but if you are correct, then the OP should have made this abundantly clear.
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 Savings by Deleting Unused datasets swathykrishnan All Other Mainframe Topics 13 Fri Jul 10, 2015 6:26 pm
No new posts How to check if any of the GDG versio... ovreddy JCL & VSAM 3 Fri Jun 12, 2015 1:28 am
No new posts Issue in transfering control when Del... thesumitk CICS 10 Wed Apr 01, 2015 6:45 pm
No new posts Related to GDG versions creations David Robinson JCL & VSAM 5 Tue Jan 20, 2015 11:14 am
No new posts GDG versions not being selected for b... Randy Wood SYNCSORT 2 Wed Aug 27, 2014 10:24 pm


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