MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Delete a Tape Data Set ( HOW? )

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
AD7
Beginner


Joined: 25 Oct 2006
Posts: 9
Topics: 4

PostPosted: Wed Oct 25, 2006 3:23 am    Post subject: Delete a Tape Data Set ( HOW? ) Reply with quote

Hi all,

I need to delete my tape datasets.

1. The online manuals say that I should'nt use IEFBR14 ( says it can only be used for DASD based data sets). Why?

2. It also goes onto suggest that I should use IEHPROGM. Can some one please tell me the i/p o/p parameters for this program.

3. Can we use IDCAMS? How?

4. Any other suggestions?

Thank you so much!

Regards,
AD7
Back to top
View user's profile Send private message
Mervyn
Moderator


Joined: 02 Dec 2002
Posts: 415
Topics: 6
Location: Hove, England

PostPosted: Wed Oct 25, 2006 5:13 am    Post subject: Reply with quote

In option 3.4 we just use "U".

In IDCAMS, we just use:

Code:

DELETE -                                                             
   TEST.WORK.DATABASE -    /* DATA SET TO BE UNCATALOGED */           
   NOSCRATCH               /* TELLS IDCAMS TO UNCATALOG, NOT DELETE */
                                                                     

_________________
The day you stop learning the dinosaur becomes extinct
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Wed Oct 25, 2006 8:01 am    Post subject: Reply with quote

Tape datasets are not really deleted, the volumes just expire and get reused.
You may:

- uncatalog it using IEHPROGM or IDCAMS or ISPF (this might cause the tape to expire in some shops)

- update the EXPIRE DATE to cause it to expire sooner (this function may be restricted)

Using IEFBR14 may cause a tape mount, which is unnecessary.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
AD7
Beginner


Joined: 25 Oct 2006
Posts: 9
Topics: 4

PostPosted: Wed Oct 25, 2006 11:47 pm    Post subject: Reply with quote

@Mervyn @Bill Dennis

Hey guys!

Thanks a Lot! Smile

I wrote a jcl with the IDCAMS utility (from one of the ibm.pulib manuals).
With instream as - delete tape.data.set

so does this mean - that my tapes have been uncataloged and placed in the
scratch heap ?
subsequently i had to rewrite data onto tapes with the name as before ie
tape.data.set
so does that mean that fresh tapes are used when the tape.data.set is re-created/cataloged?

just curious...

Thanks again!
Regards,
AD7
Back to top
View user's profile Send private message
AD7
Beginner


Joined: 25 Oct 2006
Posts: 9
Topics: 4

PostPosted: Thu Oct 26, 2006 12:23 am    Post subject: Reply with quote

Also, can we use HDELETE for deletion of data from a tape and subsequent rewriting data onto the same tape ( I'm not sure if I am using the right terms).
Let me rephrase my question - Smile
What does HDELETE do? How does it function?
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Thu Oct 26, 2006 8:34 am    Post subject: Reply with quote

AD7 wrote:
I wrote a jcl with the IDCAMS utility (from one of the ibm.pulib manuals).
With instream as - delete tape.data.set

so does this mean - that my tapes have been uncataloged and placed in the
scratch heap ?
They will not be scratched until they reach EXPDT. However, some shops will set tapes to expire when they get uncataloged.

Quote:
subsequently i had to rewrite data onto tapes with the name as before ie
tape.data.set
so does that mean that fresh tapes are used when the tape.data.set is re-created/cataloged?
If you use DISP=NEW, you'll get a new tape volume.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group