If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 data (chinese char) loading issue

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-07-10, 06:31
vikas.hivarkar vikas.hivarkar is offline
Registered User
 
Join Date: Dec 2010
Posts: 2
DB2 data (chinese char) loading issue

Hello All,

DB2 db version- 9.5/9.7 on Windows 2008 Server.

We are trying to load data in DB2 database from SAS 9.2. This data contain
unicoding like chinies, japanies etc characters. When we run the job,
following error is occuring

ERROR: CLI execute error: [IBM][CLI Driver][DB2/NT64] SQL0302N The value of
a host variable in the EXECUTE or OPEN statement is out of range for its
corresponding use. SQLSTATE=22001 NOTE: Statements not processed because of
errors noted above.

Note- This error will not occur if we remove all uncoding characters.

db cfg parameters for this database:
Database territory = US
Database code page = 1208
Database code set = UTF-8
Database country/region code = 1

Please guide me what should be the changes at DB2 side in order to
successfully insert Chinese, Japanese characters.

Thanking you all in advance.

Regards,
Vikas
Reply With Quote
  #2 (permalink)  
Old 12-07-10, 08:54
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Character column lengths in DB2 are specified in bytes, not characters. UTF-8 characters can occupy anywhere from 1 to 4 bytes.
Reply With Quote
  #3 (permalink)  
Old 12-08-10, 00:10
vikas.hivarkar vikas.hivarkar is offline
Registered User
 
Join Date: Dec 2010
Posts: 2
DB2 data (chinese char) loading issue

Thank you for your reply but that does not help me solving my issue....

Regards,
Vikas:
Reply With Quote
Reply

Tags
data entry, db2 9.5, error, sqlstate=22001

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On