Page 1 of 1

job log

Posted: Tue Oct 18, 2005 5:25 am
by sasi_kumarreddy
Hai all,
I want the job log, which is generated when a job is run, into a file.
Can any body help me in doing this.

Thanks,
S K Reddy :lol:

Posted: Tue Oct 18, 2005 5:47 am
by apraman
Hi Sasi,

You can check the following post.
Hope you will get the answer

viewtopic.php?t=93565

Posted: Tue Oct 18, 2005 7:21 am
by kcbland
Please use the correct forum next time. :cry:

Re: job log

Posted: Tue Oct 18, 2005 11:30 pm
by yatin.mittal
You can view the job log from the director or view job log option in menu in Designer.

With Regards,
sasi_kumarreddy wrote:Hai all,
I want the job log, which is generated when a job is run, into a file.
Can any body help me in doing this.

Thanks,
S K Reddy :lol:

Re: job log

Posted: Wed Oct 19, 2005 6:35 am
by chulett
yatin.mittal wrote:You can view the job log from the director or view job log option in menu in Designer.
I'm sorry... did someone ask how to view the job log? :?

Posted: Wed Oct 19, 2005 7:15 am
by roy
Hi,
Lacking info I decided to move this post to the server forum, though this answer will apply to a PX job as well.

On top of what was said already:
What exactly do you need?
A dump of a particular log you wish to save manualy?
(Print via the ds Director will do)
After each run save the job log in a file foreach job you run?
(wrap your job running command with a sequence that will run a job/routine making the report after the job is done)
Giving more info would be helpfull :!:

IHTH,

Posted: Wed Oct 19, 2005 5:07 pm
by ray.wurlod
In Director, choose Print from the Project menu. Choose the items and level (summary or detail) that you want. Check the Print to File check box. Nominate the file into which you want the logged events written.

(Your original post did not specify "automatically" nor give any reason for your requirement. Searching the forum will provide at least two means by which you can automate this process - one of them is a DataStage job.)

job log in file...

Posted: Fri Dec 09, 2005 7:39 am
by sasi_kumarreddy
roy wrote:Hi,
Lacking info I decided to move this post to the server forum, though this answer will apply to a PX job as well.

On top of what was said already:
What exactly do you need?
A dump of a particular log you wish to save manualy?
(Print via the ds Director will do)
After each run save the job log in a file foreach job you run?
(wrap your job running command with a sequence that will run a job/routine making the report after the job is done)
Giving more info would be helpfull :!:

IHTH,


Hi Roy,

I have a .doc file. i need to append job log into that file when ever the job runs.

Regards,
Sasi

Posted: Fri Dec 09, 2005 8:53 am
by koolnitz
Hi Sasi,

If you are running the job through command line, then probably you can use following command to capture the log into a file:

$DSHOME/bin/dsjob -logsum -max 100 project_name job_name >> logfile

where,
$DSHOME environmental variable keeps the DS Home directory path
100 - specifies the maximun no. of logs to be taken

Hope this might help you.
Cheers!

Posted: Wed Dec 14, 2005 3:36 am
by sasi_kumarreddy
Thanks Koolnitz... But if we don't run from the command line that what will be the procedure..

Posted: Wed Dec 14, 2005 4:38 am
by koolnitz
You can use EXECUTE COMMAND job activity to run the above mentioned command from DS.