Purge logs - anything older than X number of days

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
jreddy
Premium Member
Premium Member
Posts: 202
Joined: Tue Feb 03, 2004 5:09 pm

Purge logs - anything older than X number of days

Post by jreddy »

Hi,
Any advise on easiest routine or job that can be written to purge logs that are more than X number of days old ? Are all the logs in files or in XMETA or a combination of both for 8.1 release ?

The problem is that though we had the auto-purge settings in development, when the project was created and migrated to production, the admins missed the step and now we realized 2 months later that the logs are not being purged. Applying the auto-purge settings in administrator now will not help obviously.. so trying to come up with some routine or batch control that can be scheduled to purge logs.

Thanks in advance
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Re: Purge logs - anything older than X number of days

Post by chulett »

jreddy wrote:Applying the auto-purge settings in administrator now will not help obviously..
Are you certain about that? While in the past that was true - Admin changes only affected new jobs - pretty sure I recall them changing that behavior. It would be worth a quick check IMHO unless you've already done that.
-craig

"You can never have too many knives" -- Logan Nine Fingers
jreddy
Premium Member
Premium Member
Posts: 202
Joined: Tue Feb 03, 2004 5:09 pm

Post by jreddy »

Oh I hadn't heard about that changing with recent versions, thanks Craig. I will check it out and let you know what happens - thanks
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I don't think what Craig said is true. Changes to auto-purge settings still only affect subsequently-created jobs.

Search DSXchange for examples of routines. Another approach would be to enable tracing then perform the required purge manually. The trace file will show all the routines that get called.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Pretty sure I recall reading here that any job with 'default' purge settings would now automatically inherit any changes to the Project level defaults. Ones where that had been 'overridden' would not. I recall being surprised by the posting of that information... let me see if I can turn it up...

Simply enough for someone to test.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply