MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

selective deletion of db2 image copies

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
vmbigot
Beginner


Joined: 17 Jun 2004
Posts: 36
Topics: 14
Location: westminster, california

PostPosted: Mon Jun 02, 2008 5:07 pm    Post subject: selective deletion of db2 image copies Reply with quote

We are using the standard DB2 COPY utility to create image copies, both full and incremental, of all of our databases. We would like to be able to selectively delete image copies out of the SYSIBM.SYSCOPY table and their associated datasets. The problem with the standard DB2 MODIFY utility is that you have only two options, delete ALL image copies that are more than AGE(nnn) old or ALL image copies that are older than DATE(yyyymmdd). We need to keep monthly full image copies for at least three years, but in order to do that we need to keep ALL image copies for three years, and that is a lot of disk space and tapes!

Is there a utility that is available that manages image copies in such a way that you can select those image copies you would like to keep and delete the rest?

Thanks,

vmbigot
_________________
Inside every older man is a young boy asking this question. What the heck happened?!?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Mon Jun 02, 2008 5:32 pm    Post subject: Reply with quote

vmbigot,

Run LISTDEF/REPORT utilities and parse the output and create the MODIFY control cards on the fly for the ones you want to delete/keep

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
CraigG
Intermediate


Joined: 02 May 2007
Posts: 202
Topics: 0
Location: Viginia, USA

PostPosted: Mon Jun 02, 2008 6:52 pm    Post subject: Reply with quote

Modify does not delete the image copies, it only deletes the entries from the syscopy table.
Back to top
View user's profile Send private message
vmbigot
Beginner


Joined: 17 Jun 2004
Posts: 36
Topics: 14
Location: westminster, california

PostPosted: Tue Jun 03, 2008 1:41 pm    Post subject: Reply with quote

Kolusu,

I've found that I can still use the catalogued image copy datasets as input to a LOAD, even though the dataset is no longer in the SYSCOPY table. Therefore, I am comfortable with setting up a scheduled MODIFY RECOVERY job to delete old entries in the SYSCOPY table.

The only reason we need to keep three years of backups is so that our programmers can bring back archived data for auditing purposes. Now that I know that a LOAD will process old data without an entry in the SYSCOPY table I can reassure our auditors that old data will not be lost.

Thanks again for your assistance.

vmbigot
_________________
Inside every older man is a young boy asking this question. What the heck happened?!?
Back to top
View user's profile Send private message
videlord
Beginner


Joined: 09 Dec 2004
Posts: 147
Topics: 19

PostPosted: Wed Jun 04, 2008 9:37 pm    Post subject: Reply with quote

DSN1COPY is more easier.
You don't need UNLOAD/LOAD.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group