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 GDG Generations

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

New User


Joined: 18 Aug 2008
Posts: 50
Location: Bangalore

PostPosted: Wed May 26, 2010 11:47 am    Post subject: Deleting GDG Generations
Reply with quote

Hi All,

Here is my question.
Suppose if there are 200 Generations for a particular GDG.How can we delete generations from 1 to 199 leaving 200th generation alone.

Thanks..
Back to top
View user's profile Send private message

PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2429
Location: Netherlands, Amstelveen

PostPosted: Wed May 26, 2010 11:54 am    Post subject:
Reply with quote

rename the 200th generation
delete all entries
rename the 200th generation back to its original name

all to be done with idcams
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Wed May 26, 2010 11:55 am    Post subject: Reply to: Deleting GDG Versions
Reply with quote

depends where You start counting ...
if the one You want to keep is the last/youngest
You can alter the limit and reset it later ( look at the manual for the details )
if the one You want to keep is the first/oldest
You will have to delete them one by one
Back to top
View user's profile Send private message
sandhyaimmadi

New User


Joined: 18 Aug 2008
Posts: 50
Location: Bangalore

PostPosted: Wed May 26, 2010 12:42 pm    Post subject: Reply to: Deleting GDG Versions
Reply with quote

Hi Enrico,

I didn't get your approach.Changing the LIMIT and again reseting it.
Could you please explain it.

Thanks,
Sandhya.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Wed May 26, 2010 12:49 pm    Post subject: Reply to: Deleting GDG Versions
Reply with quote

Since You did not tell enough
I told You what to do to ... delete the unwanted and return to the original situation

before... limit > 200 generations present 200
after setting limit to xx generations present xx
the unwanted will be delete/rolled off and the datasets scratched

if You want o go back to the previous pattern You have to set again the limit to the original one
Back to top
View user's profile Send private message
sandhyaimmadi

New User


Joined: 18 Aug 2008
Posts: 50
Location: Bangalore

PostPosted: Wed May 26, 2010 12:57 pm    Post subject: Reply to: Deleting GDG Versions
Reply with quote

Hi Enrico,

I have tried your approach.
Changing the LIMIT and reseting .
It worked fine.

Thank You Very Much.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Wed May 26, 2010 4:00 pm    Post subject:
Reply with quote

I also liked the idea from Peter, never thought on those lines actually, Thanks. icon_smile.gif
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 Savings by Deleting Unused datasets swathykrishnan All Other Mainframe Topics 13 Fri Jul 10, 2015 6:26 pm
No new posts Issue in transfering control when Del... thesumitk CICS 10 Wed Apr 01, 2015 6:45 pm
No new posts Read all GDG generations, execept las... knobi JCL & VSAM 5 Fri Dec 12, 2014 12:52 am


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