View previous topic :: View next topic
|
Author |
Message |
fcrmf
New User
Joined: 01 Dec 2005 Posts: 4
|
|
|
|
Hi
I need to delete several thousand files from tape. Does anybody know a quick way of doing this? |
|
Back to top |
|
|
fcrmf
New User
Joined: 01 Dec 2005 Posts: 4
|
|
|
|
I found the answer elsewhere in this forum. I had wanted to delete thousands of SAR reports from tape after transferring them to the PC. Looks like I need to buy the CA PC-SAR product to do at least the transfer. |
|
Back to top |
|
|
khamarutheen
Active Member
Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
|
|
Hi frnd,
use this code to delete file from tape and u can use the Catalog procedure which inturns in loop such that to delete the files in a continuous loop.
//DD1 DD DSNAME=HERBI,DISP=(OLD,DELETE,DELETE),UNIT=TAPE,
// VOLUME=SER=T2 |
|
Back to top |
|
|
akashs
New User
Joined: 24 Nov 2005 Posts: 49 Location: chennai
|
|
|
|
can we delete tape files permanently? |
|
Back to top |
|
|
khamarutheen
Active Member
Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
|
|
Hi frnd,
i think v can delete permanently.... but i have not tried with that just theoretically i know that. |
|
Back to top |
|
|
fcrmf
New User
Joined: 01 Dec 2005 Posts: 4
|
|
|
|
For deleting from tape, I first listed my files (which have multiple wild cards, for example, aaa.bbb.c*.d*.rpt)
then I saved the list using SAVE MYLIST. It saved it to my userid.
Then I used "r all", move/overlay cmds to edit the dataset which had my list (myuserid.mylist.datasets) to include DELETE in front of each record name and PURGE at the end of each record. You have to include ERASE at the end to replace the data with zeros otherwise the data will still be there to be overwritten by new data.
I then wrote an IDCAMS jcl and copy pasted myuserid.mylist.datasets and ran it.
The whole process didnt take long even though I had to do this 10 different times. We dont have licenses for that ADRsomething program mentioned elsewhere.
I got this idea from another forum. |
|
Back to top |
|
|
khamarutheen
Active Member
Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
|
|
Hi frnd,
Thanks for sharing this valuable information with us. |
|
Back to top |
|
|
|