View previous topic :: View next topic
|
Author |
Message |
maggiebms
New User
Joined: 23 May 2005 Posts: 16
|
|
|
|
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 |
|
|
Rupesh.Kothari
Member of the Month
Joined: 27 Apr 2005 Posts: 463
|
|
|
|
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 |
|
|
Kevin
Active User
Joined: 25 Aug 2005 Posts: 234
|
|
|
|
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 |
|
|
Rupesh.Kothari
Member of the Month
Joined: 27 Apr 2005 Posts: 463
|
|
|
|
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 |
|
|
kumar_ngl Warnings : 1 New User
Joined: 05 Aug 2005 Posts: 50 Location: chennai
|
|
|
|
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 |
|
|
|