can not call a Stored Procedure using odbc stage

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
acool
Participant
Posts: 29
Joined: Tue Feb 17, 2004 4:31 pm

can not call a Stored Procedure using odbc stage

Post by acool »

Hi every, I tried to call a stored procedure using an odbc stage.

here is the error message, does anyone know what's going on? Thanks.


|LdUserDetail_0812.ODBC_50: DSD.BCIConnect connecting to userDB, call to SQLConnect failed.
SQLSTATE=IM002, DBMS.CODE=0
[DataStage][SQL Client][ODBC][DataDirect][ODBC lib] Data source name not found and no default driver specified|
tonystark622
Premium Member
Premium Member
Posts: 483
Joined: Thu Jun 12, 2003 4:47 pm
Location: St. Louis, Missouri USA

Post by tonystark622 »

It appears from the message that you do not have an ODBC DSN set up on your DataStage server with the name that you specified in the ODBC stage. If so, it doesn't appear to be set up correctly.

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

Post by chulett »

You might want to consider using an OCI stage, or better yet (if on 7.5) the Stored Procedure stage.
-craig

"You can never have too many knives" -- Logan Nine Fingers
neena
Participant
Posts: 90
Joined: Mon Mar 31, 2003 4:32 pm

Post by neena »

Check your ODBC connectivity parameteres.. Your connect string DSN is not pointing to RIGHT direction

Thanks
Neena
acool
Participant
Posts: 29
Joined: Tue Feb 17, 2004 4:31 pm

Post by acool »

chulett wrote:You might want to consider using an OCI stage, or better yet (if on 7.5) the Stored Procedure stage.
I tried OCI stage, and it works. But is there any disadvantage if I use OCI stage instead of odbc stage?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Not that I am aware of. In my opinion, it's always better to use a 'native' stage rather than a generic one, if available.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

If you use a Dynamic Relational Stage you can flick between the two and figure out the differences.
8)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
rajeev_prabhuat
Participant
Posts: 136
Joined: Wed Sep 29, 2004 5:56 am
Location: Chennai
Contact:

Post by rajeev_prabhuat »

Hi,

Can you tell me how did you call Procdure in Oracle OCI stage.

Regards,
Rajeev Prabhu
acool wrote:
chulett wrote:You might want to consider using an OCI stage, or better yet (if on 7.5) the Stored Procedure stage.
I tried OCI stage, and it works. But is there any disadvantage if I use OCI stage instead of odbc stage?
madhavgp
Participant
Posts: 6
Joined: Mon Dec 20, 2004 10:35 pm

Post by madhavgp »

Hi acool,
I have successfully called a DB2 stored procedure using a ODBC stage using 'user defined SQL query' option and writing:

call procedurename(argument list);

in the 'enter sql' tab

but was unsuccessful using 'stored procedure' option due to:

1.) it required that i import that s proc defn beforehand

2.) when i tried to do that i could locate the s procedure but while importing it asked to enter arguments and i did taht then the query it generated was out of this world.

thanks,
Madhav
madhavgp
Participant
Posts: 6
Joined: Mon Dec 20, 2004 10:35 pm

Post by madhavgp »

Hi,
Can anybody tell me how to call a db2 stored procedure using 'stored procedure' option in outputs page of a ODBC stage...

Thanks,
Madhav
Post Reply