Delete Datastage log using routine

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
venkatpendyala
Participant
Posts: 2
Joined: Mon Apr 17, 2006 3:33 pm

Delete Datastage log using routine

Post 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
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Welcome Aboard! Use the Auto-purge capability in Director. There's no documented API for managing job logs.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
venkatpendyala
Participant
Posts: 2
Joined: Mon Apr 17, 2006 3:33 pm

Post 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
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post 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.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
mauherga
Participant
Posts: 31
Joined: Thu Mar 02, 2006 9:47 am
Location: Mexico

Post 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.
maurik
Post Reply