How to deal with Job Log ?
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 161
- Joined: Wed Aug 02, 2006 4:30 am
How to deal with Job Log ?
How can I send out all job logs by email after job finished/abort...
thanks
thanks
-
- Premium Member
- Posts: 1255
- Joined: Wed Feb 02, 2005 11:54 am
- Location: United States of America
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
General probably IS the appropriate forum, since the answer will be the same irrespective of job type.
If you want the entire log, use an after-job subroutine. Perhaps use ExecSH to invoke dsjob, or "roll your own" using the DataStage API.
Better, use a downstream activity in the job sequence, because the "job finished" event has not yet been logged when the after-job subroutine is executing.
If you want the entire log, use an after-job subroutine. Perhaps use ExecSH to invoke dsjob, or "roll your own" using the DataStage API.
Better, use a downstream activity in the job sequence, because the "job finished" event has not yet been logged when the after-job subroutine is executing.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 161
- Joined: Wed Aug 02, 2006 4:30 am
Job status information is not enough..narasimha wrote:Use the Notification activity in the Job Sequence.
Check the "Include job status in email", you should get what you want.
what I want to get is the job log information for the finished job ?
Is developing a job routine the only way to get it ??
thanks
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You don't need to develop a routine, though it would be more flexible. ExecSH (or ExecSHSilent) is supplied with the product - all you have to supply is the command line for dsjob command to dump the log.
Last edited by ray.wurlod on Fri Jan 12, 2007 2:46 pm, edited 2 times in total.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
And to help with that, as with most commands, you can execute dsjob without any arguments to get the 'usage' statement. That and read the Server Job Developer's Guide pdf, down near the end there is a chapter on the Command Line Interface which rather thoroughly explains all of the various options - including the ones needed to farm job logs.
They even mention what 'DSGet*' function each one is equivalent to, so you could use that as a guide if you desired to approach this from a custom routine rather than a scripted standpoint.
They even mention what 'DSGet*' function each one is equivalent to, so you could use that as a guide if you desired to approach this from a custom routine rather than a scripted standpoint.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers