View previous topic :: View next topic |
Author |
Message |
AD7 Beginner
Joined: 25 Oct 2006 Posts: 9 Topics: 4
|
Posted: Wed Oct 25, 2006 3:23 am Post subject: Delete a Tape Data Set ( HOW? ) |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
Mervyn Moderator
![](images/avatars/gallery/members/merv.jpg)
Joined: 02 Dec 2002 Posts: 415 Topics: 6 Location: Hove, England
|
Posted: Wed Oct 25, 2006 5:13 am Post subject: |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
Bill Dennis Advanced
![](images/avatars/gallery/cartoons/WB60.gif)
Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Wed Oct 25, 2006 8:01 am Post subject: |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
AD7 Beginner
Joined: 25 Oct 2006 Posts: 9 Topics: 4
|
Posted: Wed Oct 25, 2006 11:47 pm Post subject: |
|
|
@Mervyn @Bill Dennis
Hey guys!
Thanks a Lot!
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 |
|
![](templates/subSilver/images/spacer.gif) |
AD7 Beginner
Joined: 25 Oct 2006 Posts: 9 Topics: 4
|
Posted: Thu Oct 26, 2006 12:23 am Post subject: |
|
|
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 -
What does HDELETE do? How does it function? |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Bill Dennis Advanced
![](images/avatars/gallery/cartoons/WB60.gif)
Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Thu Oct 26, 2006 8:34 am Post subject: |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
|
|