job 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
sasi_kumarreddy
Participant
Posts: 27
Joined: Thu Aug 25, 2005 6:33 am

job log

Post 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:
apraman
Participant
Posts: 47
Joined: Mon Sep 12, 2005 5:26 am

Post by apraman »

Hi Sasi,

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

viewtopic.php?t=93565
Arun
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Please use the correct forum next time. :cry:
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
yatin.mittal
Participant
Posts: 20
Joined: Fri Oct 14, 2005 12:52 am

Re: job log

Post 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:
Yatin Mittal
Accenture Services Pvt. Ltd.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Re: job log

Post 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? :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post 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,
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post 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.)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
sasi_kumarreddy
Participant
Posts: 27
Joined: Thu Aug 25, 2005 6:33 am

job log in file...

Post 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
SASI
koolnitz
Participant
Posts: 138
Joined: Wed Sep 07, 2005 5:39 am

Post 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!
Nitin Jain | India

If everything seems to be going well, you have obviously overlooked something.
sasi_kumarreddy
Participant
Posts: 27
Joined: Thu Aug 25, 2005 6:33 am

Post by sasi_kumarreddy »

Thanks Koolnitz... But if we don't run from the command line that what will be the procedure..
SASI
koolnitz
Participant
Posts: 138
Joined: Wed Sep 07, 2005 5:39 am

Post by koolnitz »

You can use EXECUTE COMMAND job activity to run the above mentioned command from DS.
Nitin Jain | India

If everything seems to be going well, you have obviously overlooked something.
Post Reply