DataStage Director Log for each job need in specified path

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
vinbhate
Participant
Posts: 36
Joined: Tue Jul 17, 2007 12:51 am
Location: India-Mumbai

DataStage Director Log for each job need in specified path

Post by vinbhate »

Hi All,
When we run or compile the job we see all the log in Datastage Director.Can we create this log in our path where we can maintain the log in my directory.OR once the log is created in Datastage Directory can we copy or automatically divert the log to create in specific path.

Actually i want to maintain the log of each job running in the specified path...Is that possible.Can anybody share there views on this.....

I tried writting routine and calling in after job sub routine...but routine doesnt work for me :( .If somebody has tried please share your idea.

Reply will be appericated.
Regards and Thanks,
Vinita Bhate
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The DataStage job log is a database table in the Repository - it is not a file. The best you can do is to dump the log into a file - you can not "maintain" the log in any sense.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vinbhate
Participant
Posts: 36
Joined: Tue Jul 17, 2007 12:51 am
Location: India-Mumbai

Post by vinbhate »

Thanks for the reply Ray..
But can you give me some tips how to dump the log into file without manually copying and pasting into file.
Regards and Thanks,
Vinita Bhate
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Director has a Print to File option.
You can create a "dump log to file" routine.
You can use dsjob to dump the log contents and redirect its output into a file of your choice.
There's three possibilities.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vinbhate
Participant
Posts: 36
Joined: Tue Jul 17, 2007 12:51 am
Location: India-Mumbai

Post by vinbhate »

Yes this sound good to me. :)
Regards and Thanks,
Vinita Bhate
sudheerkumar541
Participant
Posts: 11
Joined: Tue Jul 05, 2016 11:04 pm

Post by sudheerkumar541 »

Hi you can try following command, and call after job subroutine through EXecSH

dsjob -logsum <projectname> <jobname> > sample.txt
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Thank you for contributing. The status of this thread suggests that it was resolved in 2007.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply