Page 1 of 1

How to use DSLogFatal in Parallel job

Posted: Mon Dec 11, 2006 7:52 am
by Nageshsunkoji
Hi All,

I have a requirement to abort my job based on a constraint in Transformer. My constraint is If cloumnA is null then abort the job and insert a statement like 'Job is aborted CloumnA is null'. I came to know that it is possible with subroutine called
Call DSLogFatal (Message,CallingProgName)

I have searched this forum and I got syntaxes. But, I don't know exactly where I have to use this one in Parallel job though it is a Basic routine.
Is it in Jobcontrol ? or is it possible in Parallel Transformer ?

Dsxians, please provide inputs on this and what will be the code for my requirement, If possible.

Posted: Mon Dec 11, 2006 8:01 am
by DSguru2B
In JobControl. You can also do this in an after job subroutine where you can use Basic.

Posted: Mon Dec 11, 2006 8:44 am
by thebird
As DSGuru has mentioned - you can use it in the Job control.

BASIC routines cannot be called from a Parallel Transformer, but only from a BASIC transformer.

Posted: Mon Dec 11, 2006 9:19 am
by Nageshsunkoji
Hi All,

Thanks for your replies.

Can you give me some idea of Basic cod about my requirement (Abort job based on a condition)

Posted: Mon Dec 11, 2006 10:08 am
by DSguru2B
Search this forum. You will get plenty of examples.