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
 

 

Delete partcular GDG version

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
sunil_chappy

New User


Joined: 19 Mar 2006
Posts: 9
Location: Bangalore, INDIA

PostPosted: Sat Apr 15, 2006 2:59 pm    Post subject: Delete partcular GDG version
Reply with quote

Hi,
Please tell me how i delete the particular GDG version.
Back to top
View user's profile Send private message

iknow

Active User


Joined: 22 Aug 2005
Posts: 413
Location: Colarado, US

PostPosted: Sat Apr 15, 2006 5:12 pm    Post subject: Re: Delete partcular GDG version
Reply with quote

Hi,

Try this code.

Code:
//GDGDEL  JOB  (SMK),'GDG DELETE'
//STEP1  EXEC PGM=IEFBR14
//DEL1   DD   DSN=MYLIB.LIB.TEST(0)    <-- Current Version
//            DISP=(OLD,DELETE,DELETE)
//


The above example is for deleting current version. If you want to delete the particular version specify that version directly.
Back to top
View user's profile Send private message
iknow

Active User


Joined: 22 Aug 2005
Posts: 413
Location: Colarado, US

PostPosted: Sat Apr 15, 2006 5:22 pm    Post subject: Re: Delete partcular GDG version
Reply with quote

Hi,

Please make use of this code to delete the particular generation.

To delete GDG index/generations , We need to use DELETE command in
IDCAMS utility.

There are two sub parameters we can use with DELETE command.
1)PURGE
PURGE sub parameter is used in conjunction with DELETE statement to
delete the GDG index, even if its retention period has not expired.

2)FORCE parameter can be coded on the DELETE statement to delete the
GDG index, the model, and all related generation data sets, if they
exist.


Code:
//GDGDEL  JOB  (SMK),'GDGDEL'
//STEP1  EXEC PGM=IDCAMS
//SYSIN  DD   *
    DELETE(MYLIB.LIB.TEST.G00V01) GDG FORCE
/*


The above example will delete the version 01.

Please let me know if you have any questions.
Back to top
View user's profile Send private message
r2k1984

New User


Joined: 21 Jun 2005
Posts: 69
Location: chennai

PostPosted: Mon Apr 17, 2006 4:30 pm    Post subject:
Reply with quote

as the previous person was saying, if u want to delete there arev many ways of doing it.

1). purge will be deleting the file from the catalog but it will deleted form the database.
2). force will delete things from the database .
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 GDG version number PANDU1 JCL & VSAM 4 Sat Mar 04, 2017 8:28 pm
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 COBOL Version 6.1 Virendra Shambharkar COBOL Programming 15 Tue Nov 01, 2016 11:24 am
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 Is there a time Version of DATEDIFF ? Bill Woodger DFSORT/ICETOOL 1 Wed Aug 17, 2016 7:06 pm


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