Hi, does anyone have an easy way to throw a warning into the job log from a PX job? For server I used to have a routine that would do a "Call DSLogWarn(MessageString, RoutineName)".
Basically, I just need to be able to pass a string inside a transformer or some other stage and have it show up as a warning in the job log.
Currently running 8.5 FP2
How to throw a warning in PX job
Moderators: chulett, rschirm, roy
How to throw a warning in PX job
Eric Vandal - CGI
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You can use the same technique in an after-job subroutine in a parallel job. From within a Transformer stage, however, you would need to have created a parallel routine (compiled, linked and recorded it) that you could call from the Transformer stage. That routine would use the DataStage API functions to work with the job log.
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.