IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to delete a GDG with migrated versions


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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: 8797
Location: Welsh Wales

PostPosted: Wed Jul 18, 2012 8:47 pm
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
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
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

Moderator Emeritus


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

PostPosted: Thu Jul 19, 2012 8:27 am
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: 8797
Location: Welsh Wales

PostPosted: Thu Jul 19, 2012 11:33 am
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: 67
Location: Brampton, Ontario, Canada

PostPosted: Thu Jul 19, 2012 11:08 pm
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: 202
Location: Toronto, ON, Canada

PostPosted: Thu Aug 02, 2012 2:28 am
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: 8797
Location: Welsh Wales

PostPosted: Sat Aug 04, 2012 1:29 am
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 Member


Joined: 31 Dec 2009
Posts: 582
Location: London

PostPosted: Wed Aug 08, 2012 7:18 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts How to delete a user's alias from the... JCL & VSAM 11
No new posts How Can I Recall a Migrated Data Set ... PL/I & Assembler 3
No new posts Delete file row if blanks in the firs... DFSORT/ICETOOL 5
Search our Forums:

Back to Top