Call DSFATAL from transformer stage

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
myukassign
Premium Member
Premium Member
Posts: 238
Joined: Fri Jul 25, 2008 8:55 am

Call DSFATAL from transformer stage

Post by myukassign »

Hi Is it possible for to call the DSLogFatal form transformer stage.

is it possible to give this way, which is not working for me

if DSLink5.Name <> "Arun" Then
Call DSLogFatal("Error in processing", "IDWLineCounter")
END

Can anyone plese help me?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

WHERE in the Transformer stage? A CALL statement - indeed any statement - is not possible where an expression is required, including stage variable initialization, stage variable evaluation, constraints on output links and output column derivations. But you could make such a call within an after-stage subroutine invoked from a Transformer stage.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
balajisr
Charter Member
Charter Member
Posts: 785
Joined: Thu Jul 28, 2005 8:58 am

Post by balajisr »

Or you can call UtilityAbortToLog within your transformer to abort the job.
Post Reply