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

Deleting of all generations in GDG except base


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
maggiebms

New User


Joined: 23 May 2005
Posts: 16

PostPosted: Wed Aug 31, 2005 4:25 pm
Reply with quote

Hi all,
I need your kind considerations of answering my question. Plz help me ..


How to delete all the generations ( not known abt the highest versions of existing) of GDG without affecting the base?

With thanks and regards,
MaggieBMS
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Wed Aug 31, 2005 5:31 pm
Reply with quote

Hi,

I guess for your requirement you have to do it manually.

Go to option 3.4

Enter the GDG Base number

Use command delete and Hdelete (for migrated dataset) to delete the required the GDGs.

Regards
Rupesh
Back to top
View user's profile Send private message
Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Wed Aug 31, 2005 5:45 pm
Reply with quote

Any allocation of the base entry as DISP=MOD,DELETE,DELETE will delete all of the generations. The base entry will not be deleted until an IDCAMS DELETE process is run.

For example, this job step will delete all current generations, leaving only the base entry:

Code:

//*                                                 
//STEPXXXX EXEC PGM=IEFBR14                         
//DELGDGS  DD   DSN=&SYSUID..MY.GDG,               
//         DISP=(MOD,DELETE,DELETE),UNIT=SYSDA,     
//         SPACE=(CYL,(1,0))                       
//*                                                 
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Wed Aug 31, 2005 6:14 pm
Reply with quote

Hi,

Try this code

Code:
//STEP01 EXEC PGM=IEFBR14                   
//SYSUT1 DD DSN=GDG Base Name, 
//          DISP=(OLD,DELETE,DELETE)


Hope it will help you.

Regards
Rupesh
Back to top
View user's profile Send private message
kumar_ngl
Warnings : 1

New User


Joined: 05 Aug 2005
Posts: 50
Location: chennai

PostPosted: Wed Aug 31, 2005 10:18 pm
Reply with quote

Hi for your question the PURGE command along with delete will do ....

//sysin dd *

deleter gdg (......) PURGE/FORCE
/*

correct me if am wrong ....

kumar.p.v
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 Deleting a Tape file JCL & VSAM 14
No new posts CA7 deleting files in steps after job... CA Products 4
No new posts Rexx to list generations of GDGs and ... CLIST & REXX 3
No new posts TBSARG - Deleting the search criteria... TSO/ISPF 6
No new posts retrieving envelope information out o... TSO/ISPF 6
Search our Forums:

Back to Top