stored procedure

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
prasad_chennai
Participant
Posts: 38
Joined: Wed Jul 18, 2007 12:23 am
Location: Chennai

stored procedure

Post by prasad_chennai »

I am calling a stored procedure through the stored procedure stage from datastage.When i call stored procedure,i just fire the call statement and my datastage job finishes.My datastage Job will not wait until the stored procedure executes successfully.So then how i will come to know that procedure is executed successfully or its got failed.

So Is there any functionality in stored procedure stage,that it will wait until the procedure executes completely and returns any status.My stored procedure doen't return any value,but will value only IN parameter.

so can anybody guide about this.

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

Post by chulett »

Never seen that behaviour. What database?
-craig

"You can never have too many knives" -- Logan Nine Fingers
prasad_chennai
Participant
Posts: 38
Joined: Wed Jul 18, 2007 12:23 am
Location: Chennai

Post by prasad_chennai »

Oracle itself.
can't we make our job wait, till procedure execute completely.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

That is how it should be working. We use Oracle and the SP stage and have never seen this. Time to check with your official Support provider, it seems.
-craig

"You can never have too many knives" -- Logan Nine Fingers
prasad_chennai
Participant
Posts: 38
Joined: Wed Jul 18, 2007 12:23 am
Location: Chennai

Post by prasad_chennai »

I asked my admin about the same and ha sdone some setttings and code working fine now.i will get the setup been done i will update about this.

In my stored procedure. iam just passing the Input parameter and it wont return any OUT parameter.So if the procedure fails due to any exceptions,then will my Datastage Job will also get aborted at the same with the same exception been trapped in datastage log.Or to have this functionality we need to have OUT parameter compulsorily.

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

Post by ray.wurlod »

Again, this falls under the heading of testing - you need to set up conditions (such as a faulty input argument) and verify what your DataStage does. You have already observed that it had been configured differently from Craig's - who knows what other differences may obtain?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

prasad_chennai wrote:In my stored procedure. iam just passing the Input parameter and it wont return any OUT parameter.So if the procedure fails due to any exceptions,then will my Datastage Job will also get aborted at the same with the same exception been trapped in datastage log.Or to have this functionality we need to have OUT parameter compulsorily.
This is exactly the kind of sproc we typically use without issue. You don't need out parameters for error handling, as long as the sproc raises an error the job will notice. As noted, you should always test this kind of functionality (force it to fail) in order to verify proper functionality for yourself.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply