AS400 at V5R2
JDE at 7.3 with Japanese Language Installed.
File with data is ccsid 37
Use java based Client Access at code page 937 to view kanji correctly
Assignment. Convert Japanese stored DBCS data to Unicode in IFS.
Problem: Incorrect UCS2 hex value returned most of the time. But sometimes it works. If I have the correct starting UCS2, the rest of my conversion
(my own Unicode custom function works.)
Example: characters
Those are Kanji parenthesis not single byte parenthesis
. Represented by JDE in DRDL01 10A ccsid as x'0e424d48ef425d0f'
. x'0e' and x'0f' Shift out/in
D myUCS2 10C
myUCS2=%UCS2(drdl) converts JDEFIELD(DRDL01) to u'FF08' + x'975E' + x'FF09)
Debug eval myUCS2:x or SQL select hex(:myUCS2) from QSYS2/QPTPTBL (guessing old name)
Returns
FF08 and FF09 is correct. but 975E is not. It should be 7AEF.
Makes no difference what I set my JOB CCSID to be. Supposed to convert to 13488 by default
%UCS2 must be using the wrong conversion table or else the JDE values are only understan
JDE at 7.3 with Japanese Language Installed.
File with data is ccsid 37
Use java based Client Access at code page 937 to view kanji correctly
Assignment. Convert Japanese stored DBCS data to Unicode in IFS.
Problem: Incorrect UCS2 hex value returned most of the time. But sometimes it works. If I have the correct starting UCS2, the rest of my conversion
(my own Unicode custom function works.)
Example: characters
Those are Kanji parenthesis not single byte parenthesis
. Represented by JDE in DRDL01 10A ccsid as x'0e424d48ef425d0f'
. x'0e' and x'0f' Shift out/in
D myUCS2 10C
myUCS2=%UCS2(drdl) converts JDEFIELD(DRDL01) to u'FF08' + x'975E' + x'FF09)
Debug eval myUCS2:x or SQL select hex(:myUCS2) from QSYS2/QPTPTBL (guessing old name)
Returns
FF08 and FF09 is correct. but 975E is not. It should be 7AEF.
Makes no difference what I set my JOB CCSID to be. Supposed to convert to 13488 by default
%UCS2 must be using the wrong conversion table or else the JDE values are only understan
Comment