capturing the stored procedure log

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
rameshybr
Participant
Posts: 20
Joined: Mon Sep 08, 2008 11:42 pm
Location: chennai

capturing the stored procedure log

Post by rameshybr »

Hi,

I am using one stored procedure in the datastage job which loads the data from one layer to another layer.

The design is

row generator -----stored procedure stage----peek stage

I had an issue in the stored procedure it failed because of the "Violation of UNIQUE KEY constraint" but in the log there was no message and the job went successful.

Now I want to make the design thechange to abort the job when ever there is an issue in the stored procedure.

Please suggest how to do that.
RAMESH.YBR
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

What database? Basic answer would be to "raise an error" so the calling process knows something went wrong.
-craig

"You can never have too many knives" -- Logan Nine Fingers
prasson_ibm
Premium Member
Premium Member
Posts: 536
Joined: Thu Oct 11, 2007 1:48 am
Location: Bangalore

Post by prasson_ibm »

Hi There,
You need to get return value from SP and based on return value you need to success or fail the job, that you can do in downstream transformer stage.
First you have to understand and check the procedure what return code you get in case of fail and success.
Post Reply