I have a file that is ccsid 935 containing some records with Chinese characters. I need to convert that file to its upgraded version that is ccsid 13488. (These are vendor files, therefore I have no control over their definitions.) It is possible to simply copy the older file into the upgraded version with *map and *drop... the data is correct when viewed with the application. However there are a number of conversions that need to be done to the data for this upgrade to work with the newer applications. As soon as my RPGLE program tries to read a record containing the Chinese data it crashes with error CPF5029 (Data mapping error). I tried changing the eval statements to move statements for the fields that could contain Chinese characters but that didn't help since the failure occurs on the read, not the movement of the data. After digging around the internet I tried to use the control spec ccsid (*graph: 935) and control spec ccsid (*graph: 13488) - both resulted in compile error RNF1014 (The second parameter for keyword CCSID(*GRAPH) is not valid.)
Any thoughts how resolve this problem would be appreciated.
Thanks in advance, Carolyn