Hi All,
I have developed one sequence having 3 jobs .Here my requirement is if any one of the job fails then i need to capture the oborted job log information into file.
I need a server routine to capture the datastage job log information into text file.
Kindly guide me ?
Regards
vara
server routine to get the datastage job log information
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
The server routine would need to:
- attach to the job (DSAttachJob)
open the text file (OpenSeq or OpenSequentialFile)
read through its log (DSGetLogSummary, DSGetNewestLogId, DSGetLogDetail)
write required information to text file (WriteSeq)
close text file (CloseSeq)
detach from job (DSDetachJob)
handle any errors that may have occurred during the above
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: 44
- Joined: Wed Sep 02, 2015 7:19 am
- Location: Brasilia, Brazil
I'm assuming it is buried in here somewhere since he pointed other people to it in the past. I'm sure there's better examples, but there you go.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers