How to use DSLogFatal in Parallel job

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
Nageshsunkoji
Participant
Posts: 222
Joined: Tue Aug 30, 2005 2:07 am
Location: pune
Contact:

How to use DSLogFatal in Parallel job

Post 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.
NageshSunkoji

If you know anything SHARE it.............
If you Don't know anything LEARN it...............
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

In JobControl. You can also do this in an after job subroutine where you can use Basic.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
thebird
Participant
Posts: 254
Joined: Thu Jan 06, 2005 12:11 am
Location: India
Contact:

Post 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.
Nageshsunkoji
Participant
Posts: 222
Joined: Tue Aug 30, 2005 2:07 am
Location: pune
Contact:

Post 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)
NageshSunkoji

If you know anything SHARE it.............
If you Don't know anything LEARN it...............
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Search this forum. You will get plenty of examples.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply