Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ 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 -> JCL & VSAM
View previous topic :: :: View next topic  
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

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

Active Member


Joined: 23 Aug 2005
Posts: 680
Location: NJ

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: 49
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

Active Member


Joined: 23 Aug 2005
Posts: 680
Location: NJ

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

Active Member


Joined: 23 Aug 2005
Posts: 680
Location: NJ

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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Length of Tape file Mohan Kothakota JCL & VSAM 9 Thu Apr 20, 2017 10:24 pm
No new posts TAPE VERIFY utility?? MrExtraordinare JCL & VSAM 3 Fri Dec 09, 2016 10:57 pm
No new posts stacking files on a tape Pedro JCL & VSAM 7 Wed Aug 17, 2016 11:11 pm
No new posts Reading selected volumes of a multi-v... RickBig JCL & VSAM 6 Wed Jul 13, 2016 7:26 pm
No new posts How to copy Tape dataset to unix main... chaky All Other Mainframe Topics 4 Fri Jul 08, 2016 2:52 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us