Page 1 of 1

Delete Datastage log using routine

Posted: Tue Apr 25, 2006 3:29 pm
by venkatpendyala
Hi,
Please let me know, How to delete old datastage log using datastage Routines.I need to keep min one-month log for each job.


Thanks,
venkat

Posted: Tue Apr 25, 2006 4:17 pm
by kcbland
Welcome Aboard! Use the Auto-purge capability in Director. There's no documented API for managing job logs.

Posted: Wed Apr 26, 2006 7:58 am
by venkatpendyala
Thanks Kenneth Bland,

I have more than 10 projects, each project have around 150 to 200 jobs. I tried Auto purge using Datastage (version 6) Admin. Auto purge not working existing (OLD) jobs. Some of the jobs have more than one-year log.
I am looking for project level Auto Purge.


Thanks,
venkat

Posted: Wed Apr 26, 2006 8:41 am
by kcbland
Jobs that don't have their auto-purge set have to be manually set, or you can use a utility program to mass-apply the purge settings such as one I supply on my website.

Posted: Thu Apr 27, 2006 4:32 pm
by mauherga
Hi venkatpendyala,

I think you can do what you want if you:

1.- Export all your proyects
2.- Delete / Create all your projects adding an auto-purge option by default for each project using the number of days/runs you want
3.- Import your exported projects

I hope this can help you.