View previous topic :: View next topic
|
Author |
Message |
crm
New User
Joined: 14 Nov 2005 Posts: 25
|
|
|
|
HAI
i was asked in one interview tht
how can we delete the GDG's versions. |
|
Back to top |
|
|
pkmainframe
New User
Joined: 14 Jun 2005 Posts: 16 Location: India
|
|
|
|
Hi crm,
you can use the IEBGENR/IDCAMPS to delete another way is if you know the version then go to ISPF 3.4 and you can issue D on the line
Thanks
Kumar |
|
Back to top |
|
|
crm
New User
Joined: 14 Nov 2005 Posts: 25
|
|
|
|
hai pkmainframe
i think DELETE is ussed fro deleting generations in GDG's not versions ,i think
correct me if i'm wrong |
|
Back to top |
|
|
Souvik.Sinha
New User
Joined: 22 Apr 2005 Posts: 24 Location: New York, USA
|
|
|
|
GDG Versions and Generations are different.
e.g.,
GDG Version 01: HLQ.BASEGDG.G0001V01
GDG Version 02: HLQ.BASEGDG.G0001V02
GDG Generation 01: HLQ.BASEGDG.G0001V00
GDG Generation 02: HQL.BASEGDG.G0002V00
But crn,
I believe that by deleting GDG Versions, they meant deleting the generations only.
With regards,
Souvik |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Souvik, just don't forget that the system only allows for one version for one generation.
crm, I have no idea what the proper answer is supposed to be. The DELETE command should work, as well as the DELETE disposition on a DD statement. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
To clarify a bit more: a generation can have more than one version, but only one version of that generation may exist at any given time. E.g. G0001V01 can REPLACE G0001V00, G0001V02 can replace G0001V01, etc. |
|
Back to top |
|
|
Phantom
New User
Joined: 04 Sep 2005 Posts: 25
|
|
|
|
Pals,
So many replies, but I don't think that the requested solution is provided clearly.
Crm,
Below are two methods of deleting GDGs.
1. The following will delete all versions of a GDG keeping the gdg base. userid.mygdg.base is the gdg base name.
Code: |
//STEP1 EXEC PGM=IEFBR14
//DD1 DD DSN=userid.mygdg.base,DISP=(SHR,DELETE,KEEP),
|
2. To delete GDG base & all generations if exists by IDCAMS use the the following jcl.
Code: |
//*******************************************************
//PSTEP04 EXEC PGM=IDCAMS
//*******************************************************
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DELETE 'MY.GDG.BASE' FORCE
/*
//SYSDUMP DD SYSOUT=*
//*
|
Hope this helps,
Thanks,
Phantom |
|
Back to top |
|
|
crm
New User
Joined: 14 Nov 2005 Posts: 25
|
|
|
|
hai phantom
thanks for ur reply.i understood ur answer. |
|
Back to top |
|
|
crm
New User
Joined: 14 Nov 2005 Posts: 25
|
|
|
|
hai phatom
i think the first code in ur reply is used for deleting ps files ,pls check it once |
|
Back to top |
|
|
Phantom
New User
Joined: 04 Sep 2005 Posts: 25
|
|
|
|
Crm,
Did you try that out ?
Try and see what happens Pal !.
Thanks,
Phantom |
|
Back to top |
|
|
meenasomu
New User
Joined: 15 Sep 2005 Posts: 17
|
|
|
|
Hi crm,
As for as i know, the GDG is also like a PS. So we can use IEBGENER utility to delete the GDG version/generation as given by Phantom.
Regards,
Meena. |
|
Back to top |
|
|
khamarutheen
Active Member
Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
|
|
Hi frnd,
Everything is right but i remember that v should give like this in that particular line
//SYSIN DD *
DELETE(MY.GDG.BASE)GDG
/*
OR
DELETE(MY.GDG.BASE)GDG PURGE
OR
DELETE(MY.GDG.BASE)GDG FORCE
AS U NEED. |
|
Back to top |
|
|
Phantom
New User
Joined: 04 Sep 2005 Posts: 25
|
|
|
|
Khamarutheen,
Quote: |
but i remember that v should give like this in that particular line
|
Which line are you talking about ? IEFBR14 doesnot require a SYSIN card. And if you are talking about the IDCAMS solution that I gave then it already has that.
Please clarify and whenever you refer to any previous post. Please "Quote" the line which you are referring.
Thanks,
Phantom |
|
Back to top |
|
|
khamarutheen
Active Member
Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
|
|
hi frnd,
Quote: |
Which line are you talking about ? |
As i had mentioned clearly (SYSIN) refers ur code then how can i say in IEFBR14. its only IDCAMS. and the given code by me is what i had used in my shop.
fine. i will follow the quote method from the forthcoming post. thank u.[/quote] |
|
Back to top |
|
|
Phantom
New User
Joined: 04 Sep 2005 Posts: 25
|
|
|
|
Quote: |
As i had mentioned clearly (SYSIN) refers ur code then how can i say in IEFBR14
|
I agree with you. But I didn't understand clearly what you were trying to say.
Were you saying that this line
Code: |
DELETE 'MY.GDG.BASE' FORCE
|
Should actually be given like this:
Code: |
DELETE(MY.GDG.BASE)GDG FORCE
|
Thanks,
Phantom |
|
Back to top |
|
|
khamarutheen
Active Member
Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
|
|
hi frnd,
Yes i mean the following code only.
Code: |
DELETE(MY.GDG.BASE)GDG FORCE |
i had used in the above mentioned way only |
|
Back to top |
|
|
|