Connecting Tech Pros Worldwide Forums | Help | Site Map

DB2 UDB V7 & V8 codepage difference - DB2 z/OS ?

Kim Bundgaard
Guest
 
Posts: n/a
#1: Nov 12 '05
Hi

Anyone know where I can look for problem with codepage conversion between
DB2 UDB Connect EE V8.2 (fixpak 3) and DB2 UDB z/OS V7.

With DB2 UDB Connect EE V7.2 (fixpak 7) i get Ebcdic X'5A' converted to
Ascii X'A4', but with V8 I get it converted to Ascii X'80'.
I use Ebcdic codepage/ccsid 277 and client codepage 1252.

It looks like a problem with Windows Latin-1 1252/5348 - the Euro codepage,
but I can't find anything that can explain the why I get an 5348 codepage
when I use 1252 at the client.

Any suggestion welcome.

/Kim



Sherman Lau
Guest
 
Posts: n/a
#2: Nov 12 '05

re: DB2 UDB V7 & V8 codepage difference - DB2 z/OS ?


Hi Kim,

It is an expected behaviour in v8. Microsoft changed the 1252 definition by
the addition of Euro symbol in x80 without changing the definition name to
5348. If you see the definition of 1252 in Microsoft web page now, you will
see Euro at x80. Microsoft 1252 is 5348.

If you want to go back to v7 behaviour, you need to copy two conversion
files, 02771252.cnv and IBM0277.ucs. The information is documented in the
following link:
http://www-3.ibm.com/cgi-bin/db2www/...n=r0007951.htm

Download information and instruction is documented in the following link:
http://www-3.ibm.com/cgi-bin/db2www/...n=t0004584.htm


Sherman

"Kim Bundgaard" <kib at kmd.dk> wrote in message
news:3f97bf34$0$29381$edfadb0f@dread15.news.tele.d k...[color=blue]
> Hi
>
> Anyone know where I can look for problem with codepage conversion between
> DB2 UDB Connect EE V8.2 (fixpak 3) and DB2 UDB z/OS V7.
>
> With DB2 UDB Connect EE V7.2 (fixpak 7) i get Ebcdic X'5A' converted to
> Ascii X'A4', but with V8 I get it converted to Ascii X'80'.
> I use Ebcdic codepage/ccsid 277 and client codepage 1252.
>
> It looks like a problem with Windows Latin-1 1252/5348 - the Euro[/color]
codepage,[color=blue]
> but I can't find anything that can explain the why I get an 5348 codepage
> when I use 1252 at the client.
>
> Any suggestion welcome.
>
> /Kim
>
>[/color]


Kim Bundgaard
Guest
 
Posts: n/a
#3: Nov 12 '05

re: DB2 UDB V7 & V8 codepage difference - DB2 z/OS ?


Hi

Thank you, but please explain why .....

The Windows client is the same (and so is the DB2 z/OS V7) - the only thing
I've changed is the DB2 UDB from V7 to V8.

As I understand the DRDA-session, it is the DRDA-Server that have to do the
translation of characteres from EBCDIC to Ascii - and from SYSSTRINGS
(277/1252) I can see that EBCDIC X'5A' translate to a X'A4' - and that is
what I get at the DB2 UDB V7.

But at V8 I get a X'80' (Euro-sign).

/Kim

"Sherman Lau" <shermanNOSPAM@ca.ibm.com> wrote in message
news:bn8lpb$obs$1@hanover.torolab.ibm.com...[color=blue]
> Hi Kim,
>
> It is an expected behaviour in v8. Microsoft changed the 1252 definition[/color]
by[color=blue]
> the addition of Euro symbol in x80 without changing the definition name to
> 5348. If you see the definition of 1252 in Microsoft web page now, you[/color]
will[color=blue]
> see Euro at x80. Microsoft 1252 is 5348.
>
> If you want to go back to v7 behaviour, you need to copy two conversion
> files, 02771252.cnv and IBM0277.ucs. The information is documented in the
> following link:
>[/color]
http://www-3.ibm.com/cgi-bin/db2www/...pport/v8infoce
nter.d2w/report?target=mainFrame&fn=r0007951.htm[color=blue]
>
> Download information and instruction is documented in the following link:
>[/color]
http://www-3.ibm.com/cgi-bin/db2www/...pport/v8infoce
nter.d2w/report?target=mainFrame&fn=t0004584.htm[color=blue]
>
>
> Sherman
>
> "Kim Bundgaard" <kib at kmd.dk> wrote in message
> news:3f97bf34$0$29381$edfadb0f@dread15.news.tele.d k...[color=green]
> > Hi
> >
> > Anyone know where I can look for problem with codepage conversion[/color][/color]
between[color=blue][color=green]
> > DB2 UDB Connect EE V8.2 (fixpak 3) and DB2 UDB z/OS V7.
> >
> > With DB2 UDB Connect EE V7.2 (fixpak 7) i get Ebcdic X'5A' converted to
> > Ascii X'A4', but with V8 I get it converted to Ascii X'80'.
> > I use Ebcdic codepage/ccsid 277 and client codepage 1252.
> >
> > It looks like a problem with Windows Latin-1 1252/5348 - the Euro[/color]
> codepage,[color=green]
> > but I can't find anything that can explain the why I get an 5348[/color][/color]
codepage[color=blue][color=green]
> > when I use 1252 at the client.
> >
> > Any suggestion welcome.
> >
> > /Kim
> >
> >[/color]
>
>[/color]


Sherman Lau
Guest
 
Posts: n/a
#4: Nov 12 '05

re: DB2 UDB V7 & V8 codepage difference - DB2 z/OS ?


The receiver is doing the conversion in DRDA. When you select EBCDIC X'5A',
the DB2 UDB v8 client is converting EBCDCI X'5A' to 1252 X'80' using its
internal conversion table, not SYSIBM.SYSSTRINGS in DB2/zOS. If you replace
the UDB conversion table from the ftp site, UDB will read in the replaced
conversion table and convert the data to 1252 X'A4' for you.

Sherman

"Kim Bundgaard" <kib at kmd.dk> wrote in message
news:3f983005$1$29390$edfadb0f@dread15.news.tele.d k...[color=blue]
> Hi
>
> Thank you, but please explain why .....
>
> The Windows client is the same (and so is the DB2 z/OS V7) - the only[/color]
thing[color=blue]
> I've changed is the DB2 UDB from V7 to V8.
>
> As I understand the DRDA-session, it is the DRDA-Server that have to do[/color]
the[color=blue]
> translation of characteres from EBCDIC to Ascii - and from SYSSTRINGS
> (277/1252) I can see that EBCDIC X'5A' translate to a X'A4' - and that is
> what I get at the DB2 UDB V7.
>
> But at V8 I get a X'80' (Euro-sign).
>
> /Kim
>
> "Sherman Lau" <shermanNOSPAM@ca.ibm.com> wrote in message
> news:bn8lpb$obs$1@hanover.torolab.ibm.com...[color=green]
> > Hi Kim,
> >
> > It is an expected behaviour in v8. Microsoft changed the 1252 definition[/color]
> by[color=green]
> > the addition of Euro symbol in x80 without changing the definition name[/color][/color]
to[color=blue][color=green]
> > 5348. If you see the definition of 1252 in Microsoft web page now, you[/color]
> will[color=green]
> > see Euro at x80. Microsoft 1252 is 5348.
> >
> > If you want to go back to v7 behaviour, you need to copy two conversion
> > files, 02771252.cnv and IBM0277.ucs. The information is documented in[/color][/color]
the[color=blue][color=green]
> > following link:
> >[/color]
>[/color]
http://www-3.ibm.com/cgi-bin/db2www/...pport/v8infoce[color=blue]
> nter.d2w/report?target=mainFrame&fn=r0007951.htm[color=green]
> >
> > Download information and instruction is documented in the following[/color][/color]
link:[color=blue][color=green]
> >[/color]
>[/color]
http://www-3.ibm.com/cgi-bin/db2www/...pport/v8infoce[color=blue]
> nter.d2w/report?target=mainFrame&fn=t0004584.htm[color=green]
> >
> >
> > Sherman
> >
> > "Kim Bundgaard" <kib at kmd.dk> wrote in message
> > news:3f97bf34$0$29381$edfadb0f@dread15.news.tele.d k...[color=darkred]
> > > Hi
> > >
> > > Anyone know where I can look for problem with codepage conversion[/color][/color]
> between[color=green][color=darkred]
> > > DB2 UDB Connect EE V8.2 (fixpak 3) and DB2 UDB z/OS V7.
> > >
> > > With DB2 UDB Connect EE V7.2 (fixpak 7) i get Ebcdic X'5A' converted[/color][/color][/color]
to[color=blue][color=green][color=darkred]
> > > Ascii X'A4', but with V8 I get it converted to Ascii X'80'.
> > > I use Ebcdic codepage/ccsid 277 and client codepage 1252.
> > >
> > > It looks like a problem with Windows Latin-1 1252/5348 - the Euro[/color]
> > codepage,[color=darkred]
> > > but I can't find anything that can explain the why I get an 5348[/color][/color]
> codepage[color=green][color=darkred]
> > > when I use 1252 at the client.
> > >
> > > Any suggestion welcome.
> > >
> > > /Kim
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


Kim Bundgaard
Guest
 
Posts: n/a
#5: Nov 12 '05

re: DB2 UDB V7 & V8 codepage difference - DB2 z/OS ?


Hi Sherman

I'm a little confused.
Where is the translation actually happend ?

I always believe that the translation is occuring at the DRDA-Server - which
in my world is the DB2 z/OS. Because of all the SYSSTRINGS entries, and
problems not having the correct to/from CCSID in SYSSTRINGS.

In my example/world i have the following :

a) DRDA-Server : DB2 z/OS V7 (EBCDIC/CCSID 277)
b) DB2 Connect EE V7 as gateway
c) DB2 Runtime/Appl.Dev. Client (Ascii/codepage 1252)

When I at c) select data from a) - where is the translation from EBCDIC to
Ascii going on ?
At a), b) or c) ?
Is it both a) and 3), or b), or c) ?

/Kim


"Sherman Lau" <shermanNOSPAM@ca.ibm.com> wrote in message
news:bn9c2q$rqj$1@hanover.torolab.ibm.com...[color=blue]
> The receiver is doing the conversion in DRDA. When you select EBCDIC[/color]
X'5A',[color=blue]
> the DB2 UDB v8 client is converting EBCDCI X'5A' to 1252 X'80' using its
> internal conversion table, not SYSIBM.SYSSTRINGS in DB2/zOS. If you[/color]
replace[color=blue]
> the UDB conversion table from the ftp site, UDB will read in the replaced
> conversion table and convert the data to 1252 X'A4' for you.
>
> Sherman
>
> "Kim Bundgaard" <kib at kmd.dk> wrote in message
> news:3f983005$1$29390$edfadb0f@dread15.news.tele.d k...[color=green]
> > Hi
> >
> > Thank you, but please explain why .....
> >
> > The Windows client is the same (and so is the DB2 z/OS V7) - the only[/color]
> thing[color=green]
> > I've changed is the DB2 UDB from V7 to V8.
> >
> > As I understand the DRDA-session, it is the DRDA-Server that have to do[/color]
> the[color=green]
> > translation of characteres from EBCDIC to Ascii - and from SYSSTRINGS
> > (277/1252) I can see that EBCDIC X'5A' translate to a X'A4' - and that[/color][/color]
is[color=blue][color=green]
> > what I get at the DB2 UDB V7.
> >
> > But at V8 I get a X'80' (Euro-sign).
> >
> > /Kim
> >
> > "Sherman Lau" <shermanNOSPAM@ca.ibm.com> wrote in message
> > news:bn8lpb$obs$1@hanover.torolab.ibm.com...[color=darkred]
> > > Hi Kim,
> > >
> > > It is an expected behaviour in v8. Microsoft changed the 1252[/color][/color][/color]
definition[color=blue][color=green]
> > by[color=darkred]
> > > the addition of Euro symbol in x80 without changing the definition[/color][/color][/color]
name[color=blue]
> to[color=green][color=darkred]
> > > 5348. If you see the definition of 1252 in Microsoft web page now, you[/color]
> > will[color=darkred]
> > > see Euro at x80. Microsoft 1252 is 5348.
> > >
> > > If you want to go back to v7 behaviour, you need to copy two[/color][/color][/color]
conversion[color=blue][color=green][color=darkred]
> > > files, 02771252.cnv and IBM0277.ucs. The information is documented in[/color][/color]
> the[color=green][color=darkred]
> > > following link:
> > >[/color]
> >[/color]
>[/color]
http://www-3.ibm.com/cgi-bin/db2www/...pport/v8infoce[color=blue][color=green]
> > nter.d2w/report?target=mainFrame&fn=r0007951.htm[color=darkred]
> > >
> > > Download information and instruction is documented in the following[/color][/color]
> link:[color=green][color=darkred]
> > >[/color]
> >[/color]
>[/color]
http://www-3.ibm.com/cgi-bin/db2www/...pport/v8infoce[color=blue][color=green]
> > nter.d2w/report?target=mainFrame&fn=t0004584.htm[color=darkred]
> > >
> > >
> > > Sherman
> > >
> > > "Kim Bundgaard" <kib at kmd.dk> wrote in message
> > > news:3f97bf34$0$29381$edfadb0f@dread15.news.tele.d k...
> > > > Hi
> > > >
> > > > Anyone know where I can look for problem with codepage conversion[/color]
> > between[color=darkred]
> > > > DB2 UDB Connect EE V8.2 (fixpak 3) and DB2 UDB z/OS V7.
> > > >
> > > > With DB2 UDB Connect EE V7.2 (fixpak 7) i get Ebcdic X'5A' converted[/color][/color]
> to[color=green][color=darkred]
> > > > Ascii X'A4', but with V8 I get it converted to Ascii X'80'.
> > > > I use Ebcdic codepage/ccsid 277 and client codepage 1252.
> > > >
> > > > It looks like a problem with Windows Latin-1 1252/5348 - the Euro
> > > codepage,
> > > > but I can't find anything that can explain the why I get an 5348[/color]
> > codepage[color=darkred]
> > > > when I use 1252 at the client.
> > > >
> > > > Any suggestion welcome.
> > > >
> > > > /Kim
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


Rolf Loeben
Guest
 
Posts: n/a
#6: Nov 12 '05

re: DB2 UDB V7 & V8 codepage difference - DB2 z/OS ?


DB2 always translates at the receiving end.

Regards Rolf
Sherman Lau
Guest
 
Posts: n/a
#7: Nov 12 '05

re: DB2 UDB V7 & V8 codepage difference - DB2 z/OS ?


Kim,

Rolf is correct. Let me show you an example.

Windows 1252 client. zOS 227 server.

If you insert a record from the client to the server, the server will do the
data conversion from 1252 to 227.

If you select a record from the server to the client, the client will do the
data conversion from 227 to 1252.

In your case, you are doing a select, your client is doing the conversion
for you.

Sherman
"Rolf Loeben" <rolf.loeben@online.de> wrote in message
news:bnb83d$v8noa$1@ID-207325.news.uni-berlin.de...[color=blue]
> DB2 always translates at the receiving end.
>
> Regards Rolf[/color]


Kim Bundgaard
Guest
 
Posts: n/a
#8: Nov 12 '05

re: DB2 UDB V7 & V8 codepage difference - DB2 z/OS ?


Hi Sherman (and Rolf)

Okay - I understand. I have to change my understanding of codepage
translation bewteen DB2 z/OS and DB2 UDB Runtime Client.

I can be a little insecure about IBM changing the translation without doing
a BIG ALARM in the "News for DB2 UDB V8".
It's a little inconvenient to distribute an alternative .cnv file to all my
clients because of the change.

Thank you for your comments to my misleading understanding.

Regards
Kim



"Sherman Lau" <shermanNOSPAM@ca.ibm.com> wrote in message
news:bnb8vp$855$1@hanover.torolab.ibm.com...[color=blue]
> Kim,
>
> Rolf is correct. Let me show you an example.
>
> Windows 1252 client. zOS 227 server.
>
> If you insert a record from the client to the server, the server will do[/color]
the[color=blue]
> data conversion from 1252 to 227.
>
> If you select a record from the server to the client, the client will do[/color]
the[color=blue]
> data conversion from 227 to 1252.
>
> In your case, you are doing a select, your client is doing the conversion
> for you.
>
> Sherman
> "Rolf Loeben" <rolf.loeben@online.de> wrote in message
> news:bnb83d$v8noa$1@ID-207325.news.uni-berlin.de...[color=green]
> > DB2 always translates at the receiving end.
> >
> > Regards Rolf[/color]
>
>[/color]


Kim Bundgaard
Guest
 
Posts: n/a
#9: Nov 12 '05

re: DB2 UDB V7 & V8 codepage difference - DB2 z/OS ?


Hi

When i download the 02771252.cnv file to x:\sqllib\conv, my application
crashes/abend (there where no 02771252.cnv to replcae).
I've done a binary download.

By the way - when I use the default DB2 UDB V8 to insert/select data to/from
DB2 z/OS i get the "general currency symbol" and the "Euro sign" converted.
When I insert the Ascii hex is X'A4' for "general currency sign" and X'80"
for Euro sign.
In DB2 z/OS it become EBCDIC X'20' and X'5A'
When I select the row again, I get EBCDIC X'20' returned as Ascii X'A4' and
EBCDIC X'5A' as Ascii X'80' - the sign changed ...

/Kim


"Sherman Lau" <shermanNOSPAM@ca.ibm.com> wrote in message
news:bnb8vp$855$1@hanover.torolab.ibm.com...[color=blue]
> Kim,
>
> Rolf is correct. Let me show you an example.
>
> Windows 1252 client. zOS 227 server.
>
> If you insert a record from the client to the server, the server will do[/color]
the[color=blue]
> data conversion from 1252 to 227.
>
> If you select a record from the server to the client, the client will do[/color]
the[color=blue]
> data conversion from 227 to 1252.
>
> In your case, you are doing a select, your client is doing the conversion
> for you.
>
> Sherman
> "Rolf Loeben" <rolf.loeben@online.de> wrote in message
> news:bnb83d$v8noa$1@ID-207325.news.uni-berlin.de...[color=green]
> > DB2 always translates at the receiving end.
> >
> > Regards Rolf[/color]
>
>[/color]


Closed Thread