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

how to delete GDG versions


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

New User


Joined: 14 Nov 2005
Posts: 25

PostPosted: Tue Nov 22, 2005 5:20 pm
Reply with quote

HAI

i was asked in one interview tht
how can we delete the GDG's versions.
Back to top
View user's profile Send private message
pkmainframe

New User


Joined: 14 Jun 2005
Posts: 16
Location: India

PostPosted: Tue Nov 22, 2005 5:33 pm
Reply with quote

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
View user's profile Send private message
crm

New User


Joined: 14 Nov 2005
Posts: 25

PostPosted: Tue Nov 22, 2005 6:39 pm
Reply with quote

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
View user's profile Send private message
Souvik.Sinha

New User


Joined: 22 Apr 2005
Posts: 24
Location: New York, USA

PostPosted: Tue Nov 22, 2005 10:10 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Nov 23, 2005 2:37 am
Reply with quote

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
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Wed Nov 23, 2005 7:42 am
Reply with quote

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
View user's profile Send private message
Phantom

New User


Joined: 04 Sep 2005
Posts: 25

PostPosted: Wed Nov 23, 2005 11:27 am
Reply with quote

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
View user's profile Send private message
crm

New User


Joined: 14 Nov 2005
Posts: 25

PostPosted: Wed Nov 23, 2005 1:46 pm
Reply with quote

hai phantom

thanks for ur reply.i understood ur answer.
Back to top
View user's profile Send private message
crm

New User


Joined: 14 Nov 2005
Posts: 25

PostPosted: Wed Nov 23, 2005 1:53 pm
Reply with quote

hai phatom

i think the first code in ur reply is used for deleting ps files ,pls check it once
Back to top
View user's profile Send private message
Phantom

New User


Joined: 04 Sep 2005
Posts: 25

PostPosted: Wed Nov 23, 2005 2:30 pm
Reply with quote

Crm,

Did you try that out ?

Try and see what happens Pal !.

Thanks,
Phantom
Back to top
View user's profile Send private message
meenasomu

New User


Joined: 15 Sep 2005
Posts: 17

PostPosted: Wed Nov 23, 2005 6:14 pm
Reply with quote

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
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Wed Nov 23, 2005 7:26 pm
Reply with quote

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
View user's profile Send private message
Phantom

New User


Joined: 04 Sep 2005
Posts: 25

PostPosted: Wed Nov 23, 2005 7:58 pm
Reply with quote

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
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Wed Nov 23, 2005 8:22 pm
Reply with quote

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
View user's profile Send private message
Phantom

New User


Joined: 04 Sep 2005
Posts: 25

PostPosted: Wed Nov 23, 2005 8:39 pm
Reply with quote

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
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Thu Nov 24, 2005 9:42 am
Reply with quote

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
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 DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts How to delete a user's alias from the... JCL & VSAM 11
No new posts Delete file row if blanks in the firs... DFSORT/ICETOOL 5
No new posts volume mass delete RMM JCL & VSAM 2
Search our Forums:

Back to Top