java - SQL0332 Character conversion between CCSID-id 1156 and 278 is not possible -
i have embedded sql query iseries in java program throwing following error -
"[sql0332] character conversion between ccsid-id 1156 , 278 not possible.".
i facing problem 1 library not all.
working query:
select * srbkto koacno=721
not-working query:
select * srbkto koacno= '721' (this works other libraries)
if try hit query conditional clause quotes (string or int type), error thrown.
i not have great knowledge on iseries. understood there conversion problem character " ' "
(as of guess char) ccsid 1156 278.
i tried java api com.ibm.as400.access.as400.setccsid(1156) of jt400native jar set source ccsid connection object didn't result in anything. required change target ccsid? can please suggest way resolve this?
if use dspffd display koacno field descriptions, you'll find codepage/charset 1156 (baltic). may use cast convert field in query target charset.
check correct ccsid library works. example of casting below (assuming correct 1146):
select * srbkto cast(koacno char(20) ccsid 1146) = '721'
Comments
Post a Comment