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

How to delete GDG residing on Tape


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
aajakashif

New User


Joined: 22 Mar 2008
Posts: 27
Location: New Delhi

PostPosted: Fri Jul 02, 2010 2:09 am
Reply with quote

Hi,

Could anybody help me out with "How to delete GDG residing on Tape"

Steps which I've tried are as follows:

--I went to 3.4 ISPF
--Pulled the GDG name "abc.xyz.lmn.G0146V00"
--I tried Uncataloging the GDG first by typing U next to the GDG name.
--It gave me an error msg on the right hand corner "Tape Not Supported"
--I tried deleting the GDG by typing D next to the GDG name, it again gave me the same error msg "Tape not supported"

** I beleive the GDG has already been migrated to TAPE
** Please explain, how to delete GDG from a tape and also explain deleting a GDG would delete its catalog entry???
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jul 02, 2010 4:03 am
Reply with quote

IEFBR14 in batch
IDCAMS in batch

If the file truly has been migrated and shows a migration level for the volume serial, you can use HDELETE command in TSO or batch.
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: Fri Jul 02, 2010 6:07 am
Reply with quote

Hello,

If you do not have this yet resolved, suggest you post the jcl step that created the problem generation.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Jul 02, 2010 12:45 pm
Reply with quote

Is there an expiry date shown when you perform a listcat against the generation in question.
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 580
Location: London

PostPosted: Fri Jul 02, 2010 1:29 pm
Reply with quote

...and what Tape Management Subsystem do you have? Does pressing PF1 when you get the 'tape not supported' message provide any more detail? LISTCAT output would be helpful to as expat suggests.

Any of the example methods from Robert should work. Entering DEL / or HDEL / next to the file name in 3.4 should get rid of it.
Back to top
View user's profile Send private message
aajakashif

New User


Joined: 22 Mar 2008
Posts: 27
Location: New Delhi

PostPosted: Fri Jul 02, 2010 9:53 pm
Reply with quote

Hi everybody,
Thank you so much for your replies in sorting out this issue....

Dick Scherrer>> "If you do not have this yet resolved, suggest you post the jcl step that created the problem generation."
--Well, Sir, programmer asked ops to delete this GDG because it was bad, Im not sure which Job has generated this GDG.


Expat>> "Is there an expiry date shown when you perform a listcat against the generation in question."
--Sir, when I do LC beside the GDG it shows expiration date as : 0000.000 and Creation Date as: 2010.182


Pete Wilson>>"and what Tape Management Subsystem do you have? Does pressing PF1 when you get the 'tape not supported' message provide any more detail? LISTCAT output would be helpful to as expat suggests."
--Peter, at out site we use CA-MIM


*********
I had a word with my onshore couterpart and as per him if we have to delete the GDG from DASD just type "D" beside the GDG in 3.4 ISPF and If we have to delete the GDG from a Tape we have to type "U" beside GDG name in 3.4 .

Earlier I tried typing "D" (by mistake, as I did not know that we have to type U instead of D, if the GDG is on TAPE) and then it gave me error msg: "TAPE NOT SUPPORTED"
*********

As per Robert Sample, we have to do HDELETE or DELETE beside the GDG name on TAPE, I've already tried typing "D" beside the GDG name and it was giving me msg: "TAPE NOT SUPPORTED".

Please if you could clarify, why my onshore couterpart was asking me to do "U" beside the GDG name in 3.4 ISPF if the GDG is on TAPE???
AND
any explanation in this regard would be highly appreciated.....
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jul 02, 2010 10:52 pm
Reply with quote

U means uncatalog -- NOT delete.
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: Fri Jul 02, 2010 11:52 pm
Reply with quote

Hello,

Good to hear you now have a solution icon_smile.gif

Earlier i asked for the creating jcl because i was not certain if this was a dasd data set that had been migrated to tape or it this was an actual tape dataset (or something else).

As you discovered you cannot "D" a tape dataset. This is a feature not a problem. DASD datasets are often deleted (which will also uncatalog them in most cases). Tape datasets are not physically deleted - they are Uncataloged.
Back to top
View user's profile Send private message
aajakashif

New User


Joined: 22 Mar 2008
Posts: 27
Location: New Delhi

PostPosted: Sat Jul 03, 2010 3:11 am
Reply with quote

Thank You Robert and Dick for making me understand the difference.
You guys are very good.
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 Deleting a Tape file JCL & VSAM 14
No new posts How to delete a user's alias from the... JCL & VSAM 11
No new posts Delete file row if blanks in the firs... DFSORT/ICETOOL 5
Search our Forums:

Back to Top