Connecting Tech Pros Worldwide Forums | Help | Site Map

Multibyte data passed from OMVS to DB2 stored procedure gets corrupted.

Newbie
 
Join Date: Oct 2008
Posts: 1
#1: Oct 30 '08
Hi,

I read a chinese character from the notepad using c++ in OMVS to pass it to the stored procedure in DB2. In the process, the three bytes chinese character is read byte by byte and so I get three junk characters in the table when it is run. I want the three bytes to be read as a single character instead of three characters.

I checked the way it is stored in wchar_t and it also stores the data in three wchar_t array. I am able to see that sqldbchar is the ideal solution to this but I don't know how to convert the data from char* to sqldbchar. Any help on this is much appreciated.

Thanks,
Zogo.

Reply