Unix Technical Forum

Accessing DB2 for OS/390 through DB2-Connect

This is a discussion on Accessing DB2 for OS/390 through DB2-Connect within the DB2 forums, part of the Database Server Software category; --> Hello! I am trying to access a DB2 OS/390 7.1.1 using DB2-Connect from a Linux or Windows system. After ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008, 11:02 AM
SW
 
Posts: n/a
Default Accessing DB2 for OS/390 through DB2-Connect

Hello!

I am trying to access a DB2 OS/390 7.1.1 using DB2-Connect
from a Linux or Windows system. After cataloging the "tcpip node"
the "database" and the "dcs database" I can connect to the db.

When I select data from the db tables this seemed to work correctly
at first. But then I realized that some characters are not converted
correctly from EBCDIC to ISO-8859-1. The data contains german special
characters "äöüÖÄÜ" and these are all mixed up. I found that the
character "ä" gets translated to "{".

After playing around with the "DB2CODEPAGE" variable on the client
I realized that the problem seems to come from the fact that there are
different EBCDIC codesets on the mainframe.

There is a codepage EBCDIC-273-German and a codepage EBCDIC-37-US.
The characters "ä" and "{" trade places between those to codepages.

Seems like DB2-Connect is converting "EBCDIC-37" to "ISO-8859-1",
instead of doing the correct conversion from "EBCDIC-273" to "ISO-8859-1".

From reading the manuals I have learned that this has to do with the
CCSID of the database.

Can anyone tell me where to find a list of the possible CCSIDs and
how to configure the database or DB2-Connect to assume the correct CCSID.

Thanks!

Bye,
Stefan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-26-2008, 11:06 AM
Mark Yudkin
 
Posts: n/a
Default Re: Accessing DB2 for OS/390 through DB2-Connect

Review Appendix C of the DB2 Connect User's Guide.
CCSIDs are listed in Appendix J of the Administration Guide.

"SW" <sw@debis.com> wrote in message
news:9dc53b22.0307220032.63bc485a@posting.google.c om...
> Hello!
>
> I am trying to access a DB2 OS/390 7.1.1 using DB2-Connect
> from a Linux or Windows system. After cataloging the "tcpip node"
> the "database" and the "dcs database" I can connect to the db.
>
> When I select data from the db tables this seemed to work correctly
> at first. But then I realized that some characters are not converted
> correctly from EBCDIC to ISO-8859-1. The data contains german special
> characters "äöüÖÄÜ" and these are all mixed up. I found that the
> character "ä" gets translated to "{".
>
> After playing around with the "DB2CODEPAGE" variable on the client
> I realized that the problem seems to come from the fact that there are
> different EBCDIC codesets on the mainframe.
>
> There is a codepage EBCDIC-273-German and a codepage EBCDIC-37-US.
> The characters "ä" and "{" trade places between those to codepages.
>
> Seems like DB2-Connect is converting "EBCDIC-37" to "ISO-8859-1",
> instead of doing the correct conversion from "EBCDIC-273" to "ISO-8859-1".
>
> From reading the manuals I have learned that this has to do with the
> CCSID of the database.
>
> Can anyone tell me where to find a list of the possible CCSIDs and
> how to configure the database or DB2-Connect to assume the correct CCSID.
>
> Thanks!
>
> Bye,
> Stefan



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:32 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com