dbTalk Databases Forums  

CCSID error on Java app acessing db2 z/os v8

ibm.software.db2.mvs ibm.software.db2.mvs


Discuss CCSID error on Java app acessing db2 z/os v8 in the ibm.software.db2.mvs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
 
Posts: n/a

Default CCSID error on Java app acessing db2 z/os v8 - 12-14-2006 , 12:51 PM






Hi,
On a new install of db2 v8 (ccsid 37) , we enter the following query in a java app on a browser :
select '\]' , hex('\]') as test from table1
union
select description as chars, hex(description) as test from table1.
and the ] x'BB is being changed to ! x'5A' .This error only happens when the ] is harcoded like above .If its entered by a host var then the ] is displayed ] X'BB' . The java package is bound using encoding(37) , the sccsid id 37 . I have checked the Unicode images . The manuals say that the Java App should pick up the ccsid of the table .The table is ccsid 37 . anyone come across this problem ?we are using the legacy driver .
Thanks in advance
regards.
claudia


Reply With Quote
  #2  
Old   
none
 
Posts: n/a

Default Re: CCSID error on Java app acessing db2 z/os v8 - 12-15-2006 , 02:41 PM






Reminder: before executing the query DB2zOS converts the SQL to
unicode!!!!!! So your \] will be converted too. This might be a clue!

crispn (AT) br (DOT) ibm.com wrote:
Quote:
Hi,
On a new install of db2 v8 (ccsid 37) , we enter the following query in a java app on a browser :
select '\]' , hex('\]') as test from table1
union
select description as chars, hex(description) as test from table1.
and the ] x'BB is being changed to ! x'5A' .This error only happens when the ] is harcoded like above .If its entered by a host var then the ] is displayed ] X'BB' . The java package is bound using encoding(37) , the sccsid id 37 . I have checked the Unicode images . The manuals say that the Java App should pick up the ccsid of the table .The table is ccsid 37 . anyone come across this problem ?we are using the legacy driver .
Thanks in advance
regards.
claudia


Reply With Quote
  #3  
Old   
none
 
Posts: n/a

Default Re: CCSID error on Java app acessing db2 z/os v8 - 12-15-2006 , 03:49 PM



I do not think you have to bind your app ccsid(37), the ccsid you bind
with should reflect the environment it runs - isn' that 1040 WAS uss.

none wrote:
Quote:
Reminder: before executing the query DB2zOS converts the SQL to
unicode!!!!!! So your \] will be converted too. This might be a clue!

crispn (AT) br (DOT) ibm.com wrote:
Hi,
On a new install of db2 v8 (ccsid 37) , we enter the following query in a java app on a browser :
select '\]' , hex('\]') as test from table1
union
select description as chars, hex(description) as test from table1.
and the ] x'BB is being changed to ! x'5A' .This error only happens when the ] is harcoded like above .If its entered by a host var then the ] is displayed ] X'BB' . The java package is bound using encoding(37) , the sccsid id 37 . I have checked the Unicode images . The manuals say that the Java App should pick up the ccsid of the table .The table is ccsid 37 . anyone come across this problem ?we are using the legacy driver .
Thanks in advance
regards.
claudia


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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.