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
 

 

how to delete GDG versions

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: how to delete GDG versions
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    Post subject:
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    Post subject: Re: how to delete GDG versions
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    Post subject:
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

Moderator Team Head


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

PostPosted: Wed Nov 23, 2005 2:37 am    Post subject: Re: how to delete GDG versions
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    Post subject:
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    Post subject:
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    Post subject: how to delete GDG versions
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    Post subject: how to delete GDG versions
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    Post subject:
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    Post subject:
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: 680
Location: NJ

PostPosted: Wed Nov 23, 2005 7:26 pm    Post subject: GDG DELETE
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    Post subject:
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: 680
Location: NJ

PostPosted: Wed Nov 23, 2005 8:22 pm    Post subject: GDG DELETE
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    Post subject:
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: 680
Location: NJ

PostPosted: Thu Nov 24, 2005 9:42 am    Post subject: Delete GDG
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    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 JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts Delete record or Reset RC code using ... mpawan Compuware & Other Tools 4 Tue Jul 26, 2016 3:52 pm
No new posts Delete VSAM File Records amitc23 CICS 6 Sun Apr 10, 2016 10:10 am
No new posts DB2 Stored Procedure - Dynamic SQL - ... GuyC DB2 2 Wed Feb 17, 2016 5:10 pm


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