Hello Everyone,
I have a scenario, whenever my job finishes it execution it has to output its Log (with any warning or Errors exitsts in that job). How to achieve this?
how to callback to DS to get its Recent job ouput
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 24
- Joined: Fri Oct 28, 2011 10:55 am
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
After job subroutine would be my preferred mechanism. That way you can use DSJ.ME as the job handle. The only downside is you have to fake the "job finished" message based on DSJ.JOBINTERIMSTATUS.
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.
-
- Premium Member
- Posts: 24
- Joined: Fri Oct 28, 2011 10:55 am
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
DSJ.ME is a DataStage constant that you would use in the routine code itself, for example in calls to functions such as DSGetJobInfo().
You will need to create and compile the routine - it's not there by default. Create a new server routine and make its type "before/after subroutine".
You will need to create and compile the routine - it's not there by default. Create a new server routine and make its type "before/after subroutine".
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 you'll need to leverage the various "DSGet" functions, depending on exactly what you need to do. Speaking of which, can you expand a teeny bit on what "output its log" means? For example - outputs in what format, to where? To what purpose?
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Premium Member
- Posts: 24
- Joined: Fri Oct 28, 2011 10:55 am