View previous topic :: View next topic
|
Author |
Message |
ashirwad
New User
Joined: 03 Apr 2012 Posts: 5 Location: chennai
|
|
|
|
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 |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Delete each GENERATION using IDCAMS and then delete the GDG base |
|
Back to top |
|
|
ashirwad
New User
Joined: 03 Apr 2012 Posts: 5 Location: chennai
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Search the forum for CSIUTIL |
|
Back to top |
|
|
Grant Goodale
New User
Joined: 13 Nov 2010 Posts: 67 Location: Brampton, Ontario, Canada
|
|
|
|
You can also use the HDELETE command in TSO to delete a specific generation and/or version. |
|
Back to top |
|
|
jerryte
Active User
Joined: 29 Oct 2010 Posts: 202 Location: Toronto, ON, Canada
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
Pete Wilson
Active Member
Joined: 31 Dec 2009 Posts: 582 Location: London
|
|
|
|
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 |
|
|
|