odbc from ds on lnux to as400/db2

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
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

odbc from ds on lnux to as400/db2

Post by roy »

Hi yall,
I'm trying to get a data direct odbc working with as400/db2.
when trying to bind20 the odbc name I get 1213 error
(same when running the odbcdemo supplied by data direct)

Does anyone have any idea as to requirements for establishing a working connection in the mentioned configuration?
both on the as400 side and the linux side.
Any info would be apreciated (including what I already know ;:)

Thanks in advance,
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

Forgot to mention as400 is V5R3.
I know docs and branded_odbc states V5R2 latest supported.
I'll try to find out if I can find a newer version or use the iSeries client access driver.
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

Well,
After failing I asked to try it on the prod system (V5R2 till this week end) to make a support call... (using the data direct drivers)
I was amazed to see it working :shock:.
7.5.1a release notes mention a bind20 that needs to be done (never successfully did it)
So tried again on the V5R3 using again an existing working login account and it is working :shock:
I guess having more privilages then you need might actually not be to ones advantage in some cases.

so current issue is handling NLS that still shows ???.??? data, despite trying several NLS maps that should have worked.

p.s.
we configured the iSeries ODBC driver and had it working using isql, was able to see NLS chars correctly,but using it failed to supply DS any characters belonging to the NLS locale, so we reverted back to the data direct drivers.
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

update:
Well after having support online for 1 hour (not by me) I gather they added an entry in the .odbc.ini configuration for that connection and it shows the NLS, with some issues, but its working.

I've yet to get the exact details.
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

update:
adding this line:
IANAAppCodePage=<number>
to the .odbc.ini with <number> being 11 in the case mentioned got it working.

IHTH,
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
Post Reply