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 a GDG with migrated versions

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

New User


Joined: 03 Apr 2012
Posts: 5
Location: chennai

PostPosted: Wed Jul 18, 2012 8:32 pm    Post subject: How to delete a GDG with migrated versions
Reply with quote

Hi All,

I have a GDG and all its versions are migrated. I want to delete the complete GDG with its all versions and the base through a job. I tried the Force option with Delete command but its giving
"VSAM CATALOG RETURN CODE IS 190 - REASON CODE IS IGG0CLFT-12"

Please help. I don't want to recall the versions as I have many GDG with many Versions.

Thanks,
Ashirwad Kumar
Back to top
View user's profile Send private message

Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Wed Jul 18, 2012 8:35 pm    Post subject: Re: How to delete a GDG with migrated versions
Reply with quote

ashirwad wrote:
Hi All,

I have a GDG and all its versions are migrated. I want to delete the complete GDG with its all versions and the base through a job. I tried the Force option with Delete command but its giving
"VSAM CATALOG RETURN CODE IS 190 - REASON CODE IS IGG0CLFT-12"

Please help. I don't want to recall the versions as I have many GDG with many Versions.

Thanks,
Ashirwad Kumar


Please learn the difference between versions and generations!
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Jul 18, 2012 8:47 pm    Post subject:
Reply with quote

Delete each GENERATION using IDCAMS and then delete the GDG base
Back to top
View user's profile Send private message
ashirwad

New User


Joined: 03 Apr 2012
Posts: 5
Location: chennai

PostPosted: Wed Jul 18, 2012 11:50 pm    Post subject: Reply to: How to delete a GDG with migrated generations
Reply with quote

I know this is one way. I want to know is there any other way to do this. As I already mentioned I have too many GDGs with almost 100 of generations in each. Please let me know if there is any option with Delete command which can delete the generations of the GDG which are migrated and also the GDG base.

Thanks,
Ashirwad
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Jul 19, 2012 12:15 am    Post subject:
Reply with quote

now that you know the difference between generations and versions,
you can successfully execute a SEARCH within this website
(or the complete internet via google or your favorite search engine)
and find various methods
  • to generate listcats of gdgs
  • parse the associations and generate control cards
  • submit the jobs to accomplish the deletes without involving recall of migrated ds


or you can continue to whine
and wait for someone to provide you with links or a solution.

the solution to your problem lies within this very forum,
but,
i, personally, am tired of doing searches for people who supposedly have
profile :: ashirwad wrote:
Mainframe Skills: cics,jcl,db2,vsam,cobol
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Jul 19, 2012 8:27 am    Post subject: Reply to: How to delete a GDG with migrated versions
Reply with quote

Hi Dick,

For many the "Mainframe Skills" may be what they want/need to learn rather than what they already know. . . .

d
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Jul 19, 2012 11:33 am    Post subject:
Reply with quote

Search the forum for CSIUTIL
Back to top
View user's profile Send private message
Grant Goodale

New User


Joined: 13 Nov 2010
Posts: 55
Location: Brampton, Ontario, Canada

PostPosted: Thu Jul 19, 2012 11:08 pm    Post subject:
Reply with quote

You can also use the HDELETE command in TSO to delete a specific generation and/or version.
Back to top
View user's profile Send private message
jerryte

Active User


Joined: 29 Oct 2010
Posts: 183
Location: Toronto, ON, Canada

PostPosted: Thu Aug 02, 2012 2:28 am    Post subject: Re: How to delete a GDG with migrated versions
Reply with quote

ashirwad wrote:
Hi All,

I have a GDG and all its versions are migrated. I want to delete the complete GDG with its all versions and the base through a job. I tried the Force option with Delete command but its giving
"VSAM CATALOG RETURN CODE IS 190 - REASON CODE IS IGG0CLFT-12"

Please help. I don't want to recall the versions as I have many GDG with many Versions.

Thanks,
Ashirwad Kumar


Ashirwad

You can use the HDELETE command and provide a dataset name with a wildcard for the generation part. This will delete the dataset without doing a recall.
For example if you have a gdg HLQ.MY.GDG(##) then do:
HDEL 'HLQ.MY.GDG.*'
You will still need to delete the base entry as well (ie. DEL 'HLQ.MY.GDG') if you are not planning to create any more generations.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Sat Aug 04, 2012 1:29 am    Post subject: Re: How to delete a GDG with migrated versions
Reply with quote

jerryte wrote:
ashirwad wrote:
Hi All,

I have a GDG and all its versions are migrated. I want to delete the complete GDG with its all versions and the base through a job. I tried the Force option with Delete command but its giving
"VSAM CATALOG RETURN CODE IS 190 - REASON CODE IS IGG0CLFT-12"

Please help. I don't want to recall the versions as I have many GDG with many Versions.

Thanks,
Ashirwad Kumar


Ashirwad

You can use the HDELETE command and provide a dataset name with a wildcard for the generation part. This will delete the dataset without doing a recall.
For example if you have a gdg HLQ.MY.GDG(##) then do:
HDEL 'HLQ.MY.GDG.*'
You will still need to delete the base entry as well (ie. DEL 'HLQ.MY.GDG') if you are not planning to create any more generations.

But only if authorised to use HSM commands
Back to top
View user's profile Send private message
Pete Wilson

Active User


Joined: 31 Dec 2009
Posts: 437
Location: London

PostPosted: Wed Aug 08, 2012 7:18 pm    Post subject:
Reply with quote

IDCAMS DELETE commands will not force a recall of migrated datasets anymore, it just deletes them (if you have access to the files concerned)

You could simply use ISMF option 1 from TSO, put your dsname masks in to get a list of all the GDG's. You can either save that to a file using LISTPRT and then edit that into an IDCAMS delete job, or enter DELETE / on the command line from the resulting list which just immediately deletes them (but you'll get a message for each one!)
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 How to change dataset attributes of m... ignich7 JCL & VSAM 3 Thu Jul 21, 2016 9:17 pm
No new posts Delete VSAM File Records amitc23 CICS 6 Sun Apr 10, 2016 10:10 am


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