I need to be able to purge rows, based on user criteria (e.g. older than 3 years) from our DB2 tables. However, for those rows I am purging - I need to be able to archive the data such that it can be "deciphered" for audit purposes (not reload/recover the data into its table).
Of course, the deleted DB2 logs have all the data - but if we had to look at them later (a year or two down the road, say for audit purposes) they would not be a format that we/users could easily decipher. We wouldn't want to reload since the table and business rules have changed...maybe even the DB2 version has changed.
So does anybody know if there is a technique or utility to provide a solution for this type of problem? Not looking for anything fancy - maybe there is a "generic" trick for tying the data to it's column name and saving it out to a comma delimited file - or something like that.
Thanks.