Promote warning to fatal error

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
vinaymanchinila
Premium Member
Premium Member
Posts: 353
Joined: Wed Apr 06, 2005 8:45 am

Promote warning to fatal error

Post by vinaymanchinila »

Hi,

How do we promote a particular warning to fatal error so that the job aborts, we have a metadata mismatch , instead of generating a warning and dropping the data, we need it to abort.


Or

Is there a way to specify the job to abort after say 10 warnings when runing the job from Control-M.


Thanks,
Thanks,
Vinay
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Can't help with the 'promote the warning' bit, but I thought that was done via a right-click in the job's log on the warning itself?

Is there a way in PX to say if records go this particular link, abort the job after n of them? In the Server world you can say 'Abort after 1 row goes down this link' which stops the job at the first sign of the problem.

For Control-M and the 'dsjob' command line interface, simply add '-warn 10' to the command to start the job.
-craig

"You can never have too many knives" -- Logan Nine Fingers
vinaymanchinila
Premium Member
Premium Member
Posts: 353
Joined: Wed Apr 06, 2005 8:45 am

Post by vinaymanchinila »

Hi

We can demote or supress the warnings but not promote I believe.

The easy way is to use a transformer and use the condition abort on 1 row.

I have not tried the '-warn 10' , will try that, but was thinking if there is away to make a warning convert into FATAL.

Thanks for the inputs.
Thanks,
Vinay
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

No.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
pneumalin
Premium Member
Premium Member
Posts: 125
Joined: Sat May 07, 2005 6:32 am

Post by pneumalin »

vinaymanchinila wrote:Hi

We can demote or supress the warnings but not promote I believe.

The easy way is to use a transformer and use the condition abort on 1 row.

I have not tried the '-warn 10' , will try that, but was thinking if there is away to make a warning convert into FATAL.

Thanks for the inputs.
There is always a way to get what you want. But firstly you may want to identify how do you want to use this Job Abort/Fatal Status?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Not this time. You can detect and escalate, but you can not promote.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Isnt it not possible by message handler?
Or if it is metadata mismatch, collect it in reject link and add a transformer to "Abort after 1 row"
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

(1) No.
(2) This is "detect and escalate", not "promote".
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