IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

deleting from tape


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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: 677
Location: NJ

PostPosted: Fri Dec 02, 2005 10:32 am
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
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: 677
Location: NJ

PostPosted: Fri Dec 02, 2005 11:49 am
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
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: 677
Location: NJ

PostPosted: Mon Dec 05, 2005 10:44 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Deleting a Tape file JCL & VSAM 14
No new posts CA7 deleting files in steps after job... CA Products 4
No new posts JCL and TAPE drives: how to maximize ... JCL & VSAM 9
No new posts ADR324E-VOL/DATASET SPECIFIED BY DDNA... JCL & VSAM 6
No new posts Record count of RECFM=U tape file DFSORT/ICETOOL 17
Search our Forums:

Back to Top