How to Call DB2 Stored Procedure in 7.5.x2

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
dssiddu
Participant
Posts: 66
Joined: Mon Nov 07, 2005 10:28 pm
Contact:

How to Call DB2 Stored Procedure in 7.5.x2

Post by dssiddu »

Hi DS Guys

I want to call the DB2 stored procedure in Ver 7.5x2 with input and output parameters.
The SP stage is there but its only for Oracle.So any other stages can use to call DB2 SP.

Adv thanks for your Information...

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

Post by chulett »

I believe that your only other choice in that case would be the ODBC stage...
-craig

"You can never have too many knives" -- Logan Nine Fingers
dssiddu
Participant
Posts: 66
Joined: Mon Nov 07, 2005 10:28 pm
Contact:

Post by dssiddu »

Hi Thanks a lot for your quick resp..

But the current ODBC stage doesn't have the option to call Stored Procedure. Its having only Read Method: Auto generated SQL,TABLE,user defined sql.

Please your thouths..

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

Post by ray.wurlod »

Surely user-defined SQL can issue a CALL (or EXEC) statement?
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 »

Exactly.
-craig

"You can never have too many knives" -- Logan Nine Fingers
dssiddu
Participant
Posts: 66
Joined: Mon Nov 07, 2005 10:28 pm
Contact:

Post by dssiddu »

HI Ray

Thanks a lot for your resp
But I used the call stmt also but it doesn't work for me getting the error msg saying that Invalid no of argumetns even i have given the exact number of parameters.

BTW how to give in and out parameter in ODBC stage. when we call SP using the stored procedure option in ODBC.Bcz have only parameters tab over there.

Can we give out parameter in the ODBC stage ???
ray.wurlod wrote:Surely user-defined SQL can issue a CALL (or EXEC) statement? ...
Post Reply