How to write the job log to a text file

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
cherry
Participant
Posts: 108
Joined: Sun Jul 10, 2005 1:35 am

How to write the job log to a text file

Post by cherry »

Dear All,

Is there any way to write the job log to a text file.
Please help me out, if there is a solution.

My requirement is:

I need to have all the information in the log file how many records are coming from source and how may records are getiing rejected in between and before loading to the targt and how may records are being processed and out come of each stage. This is my requirement and help me out is there any feasible solution to handle this.

Advance thanks....

Regards
Cherry
vsi
Premium Member
Premium Member
Posts: 507
Joined: Wed Mar 15, 2006 1:44 pm

Re: How to write the job log to a text file

Post by vsi »

Go to the Datastage director,

Project -- Print -- click the radio button for full details or Summary

then check the print to file

then it will save the log information to txt file.
Minhajuddin
Participant
Posts: 467
Joined: Tue Mar 20, 2007 6:36 am
Location: Chennai
Contact:

Post by Minhajuddin »

There is a good post by Vincent in the FAQ for this.....
Minhajuddin

<a href="http://feeds.feedburner.com/~r/MyExperi ... ~6/2"><img src="http://feeds.feedburner.com/MyExperienc ... lrow.3.gif" alt="My experiences with this DLROW" border="0"></a>
lkthoma
Participant
Posts: 21
Joined: Wed Mar 08, 2006 8:47 am

Post by lkthoma »

The way I accomplished this was to write a unix script that invokes dsjob. With dsjob you can give it a parameter to dump the summary log entries or the detail entries. Here is a piece of my script:

dsjob -jobinfo $2 $1 > $logs_dir/$1_$my_date.log
lkthoma
Post Reply