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 the previous GDG version in IDCAMS.

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

New User


Joined: 30 Mar 2006
Posts: 11

PostPosted: Wed Feb 14, 2007 8:33 pm    Post subject: How to delete the previous GDG version in IDCAMS.
Reply with quote

Dear All,

Lets say i have a GDG file as below
RAJ.ABC.DEF.CC100
RAJ.ABC.DEF.CC100.G1823V00
RAJ.ABC.DEF.CC100.G1824V00
RAJ.ABC.DEF.CC100.G1825V00
RAJ.ABC.DEF.CC100.G1826V00
RAJ.ABC.DEF.CC100.G1827V00

Always i have to delete the last previous version in my IDCAMS step without giving version number.

Like RAJ.ABC.DEF.CC100(-1).

Is it possible using IDCAMS, If yes, Please let me know the syntax.

Thanks and Regards,
M.Rajesh
Back to top
View user's profile Send private message

dineshness

New User


Joined: 25 Dec 2006
Posts: 63
Location: Perambalur

PostPosted: Thu Feb 15, 2007 12:19 am    Post subject: Re: How to delete the previous GDG version in IDCAMS.
Reply with quote

Is there any specific reason for you to do this with the help of IDCAMS?
Or, it can be any other utility also?

You can do this with the help of executing IEFBR14 utility and including your GDG version(-1) file as a DD entry with the disposition of (OLD,DELETE,DELETE).

Dinesh.
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 Need DB2 query to fetch previous row ! Chandan1993 DB2 10 Sat Jun 03, 2017 10:43 am
No new posts VSAM RLS=NRI while doing IDCAMS sheersh JCL & VSAM 1 Tue Mar 07, 2017 1:55 pm
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


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