Page 1 of 1

How to use DSLogWarn

Posted: Fri Jun 02, 2017 2:11 pm
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

Posted: Sun Jun 04, 2017 1:50 am
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.