How to use DSLogWarn

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
jeisma
Participant
Posts: 18
Joined: Mon Mar 20, 2017 12:19 pm

How to use DSLogWarn

Post by jeisma »

hi,

there as so many links/samples about DSLogWarn. but i could not find any how/where to enter the code?

it seems like it can only be done on a server job? what of with parallel?

i have a lookup that is set to "Reject", but i want to write a custom warning message in the log as well.

TIA
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You can also interrogate the link row count(s) in an after-job subroutine.

You might also consider directing rows on the reject link into an Exceptions Stage and use the exceptions mechanism, eventually using a dsjob command to write the entry into the job log. This is not simple, but is do-able.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply