Accessing DB2 using ODBC

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
asitagrawal
Premium Member
Premium Member
Posts: 273
Joined: Wed Oct 18, 2006 12:20 pm
Location: Porto

Accessing DB2 using ODBC

Post by asitagrawal »

Hi,

I am trying to access Db2 using the ODBC stage, but I am getting the following error for all the columns.

ODBC_88.DSLink86: DSD.BCIOpenR results of SQLColAttributes(BUSINESS_UNIT) gave MetaData mismatch
COLUMN.TYPE Expected = Char Actual = Unknown

Please tell me a workaround.

I want to use ODBC to access data from Db2 because I want to use 'reference link with multi row result set' property for my reference lookup.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Get the SQL data types in your job design to match those in the DB2 table (that is, Char of the appropriate size).
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 »

And make sure you click that 'Get SQL Info' button at least once... it's called something like that, anyway.
-craig

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