How can I customize the Log

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
MAT
Participant
Posts: 65
Joined: Wed Mar 05, 2003 8:44 am
Location: Montréal, Canada

Post by MAT »

Hi,

I do not know of any way to see the logs for all jobs controlled by another one in Director. However, I needed to do something similar in my project and the best way I found was to do this using a routine.

Here are the steps:
1. Get the log from your controlling job ( use DSGetLogSummary() )
2. Scan the log checking for DSRunJob and get the job names associated
3. Attach to all jobs you got from the log
4. Ask for the log file ( again DSGetLogSummary() ) with your filter (warnings, errors, etc. )
5. Dump your log in a file for later viewing.

It may seems a twisted way of getting your infos but after many hours spent with Ascential support and on the forum here, it appears it is the easiest. Ascential has not yet developped a function to get informations about the jobs controlled by another one. It is considered for future releases (so they told me).

If you have any questions, I can provide you with some basic code you will need to do this.

Hope this helps

MAT
MAT
Participant
Posts: 65
Joined: Wed Mar 05, 2003 8:44 am
Location: Montréal, Canada

Post by MAT »

Aryan,

I'll be glad to send you what I did. Send me an email through the forum with your mail so I can send it to you.

MAT
Post Reply