Procedure call using DSDB2 Connection instead of ODBC conn

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
Corvus
Participant
Posts: 10
Joined: Sat Apr 04, 2009 6:39 am

Procedure call using DSDB2 Connection instead of ODBC conn

Post by Corvus »

Hi,

I need to call a DB2 stored procedure from Datastage 8.0.1 on unix.
The procedure should be called using a DSDB2 connection instead of ODBC connection.
Is there anyway where we can achieve the same without using an ODBC connection?

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

Post by chulett »

Can you not use the Stored Procedure stage? I could have sworn it supports DB2 but can't check right now. :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Mike
Premium Member
Premium Member
Posts: 1021
Joined: Sun Mar 03, 2002 6:01 pm
Location: Tampa, FL

Post by Mike »

The Stored Procedure stage does support DB2. That would be my preferred method for calling a DB2 stored procedure.

Mike
Corvus
Participant
Posts: 10
Joined: Sat Apr 04, 2009 6:39 am

Post by Corvus »

yes i tried using stored procedure stage but it asks for an ODBC connection to the DB2 database. We do not connect to DB2 using ODBC connection as standard adopted by the organisation. How do I connect the stored procedure stage without using ODBC? Is there a way?
Mike
Premium Member
Premium Member
Posts: 1021
Joined: Sun Mar 03, 2002 6:01 pm
Location: Tampa, FL

Post by Mike »

Change the unreasonable organization standard. The Stored Procedure Stage is what you want to use and it requires ODBC. Since you already have the DB2 client installed, you can use the "thin" wire driver when setting up your ODBC DSN.

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

Post by chulett »

If you want to leverage an installed client, you'd need to use a "thick" non-wired driver to do so. Use the thin driver when you do not have a client installed.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Mike
Premium Member
Premium Member
Posts: 1021
Joined: Sun Mar 03, 2002 6:01 pm
Location: Tampa, FL

Post by Mike »

Oh yeah. I got that backwards... "thin" without client and "thick" with client.... so you can use either driver for your ODBC DSN.

Mike
Post Reply