Page 1 of 1

How to throw a warning in PX job

Posted: Tue Feb 18, 2014 1:30 pm
by evandal
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

Posted: Tue Feb 18, 2014 2:12 pm
by ray.wurlod
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.

Posted: Tue Feb 18, 2014 2:29 pm
by evandal
Yah, I was trying to avoid having to to create an external object. It's one more thing to maintain and promote through the environments. Any other ideas?