Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
deleting from tape

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SMS & VSAM
Author Message
fcrmf

New User


Joined: 01 Dec 2005
Posts: 4

PostPosted: Thu Dec 01, 2005 11:23 pm    Post subject: deleting from tape
Reply with quote

Hi
I need to delete several thousand files from tape. Does anybody know a quick way of doing this?
Back to top
View user's profile Send private message
References
fcrmf

New User


Joined: 01 Dec 2005
Posts: 4

PostPosted: Fri Dec 02, 2005 12:35 am    Post subject: Re: deleting from tape
Reply with quote

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
View user's profile Send private message
khamarutheen

Senior Member


Joined: 23 Aug 2005
Posts: 678
Location: chennai

PostPosted: Fri Dec 02, 2005 10:32 am    Post subject: DELETE FROM TAPE
Reply with quote

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
View user's profile Send private message
akashs

New User


Joined: 24 Nov 2005
Posts: 9
Location: chennai

PostPosted: Fri Dec 02, 2005 11:36 am    Post subject: Re: deleting from tape
Reply with quote

can we delete tape files permanently?
Back to top
View user's profile Send private message
khamarutheen

Senior Member


Joined: 23 Aug 2005
Posts: 678
Location: chennai

PostPosted: Fri Dec 02, 2005 11:49 am    Post subject: DELETE FROM TAPE
Reply with quote

Hi frnd,
i think v can delete permanently.... but i have not tried with that just theoretically i know that.
Back to top
View user's profile Send private message
fcrmf

New User


Joined: 01 Dec 2005
Posts: 4

PostPosted: Fri Dec 02, 2005 10:57 pm    Post subject: Re: deleting from tape
Reply with quote

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
View user's profile Send private message
khamarutheen

Senior Member


Joined: 23 Aug 2005
Posts: 678
Location: chennai

PostPosted: Mon Dec 05, 2005 10:44 am    Post subject: Tape Deletion
Reply with quote

Hi frnd,

Thanks for sharing this valuable information with us.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SMS & VSAM All times are GMT + 6 Hours
Page 1 of 1