appropriate use of exception handler stage

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
mourya33
Participant
Posts: 8
Joined: Fri Mar 20, 2009 3:53 am

appropriate use of exception handler stage

Post by mourya33 »

We have a requirement of using the exception handler stage. We have a sequence of jobs and if any of the job fails, we have to capture the error message and error code and send a mail. We tried using the exception handler as it had parameters $ErrMessage and $ErrCode that can be used to pass in the mail notification stage. But the exception handler doesnt catch exception and the mail notification stage is not at all executed even though one of the jobs in the sequence failed.

Can any one let me know how to send the error message and code through mail, as soon as any job fails.

Thanks in advance
Mourya
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Most of this is already been answered here quite a few times. Try searching on Exception Handler and see what you can find out.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

First catch your exception.

Is your definition of "fails" the same as that which the job sequence uses?
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