Using RPG file IO data management will be converting the 1208 data to your
job CCSID on input and from the job CCSID to 424 on output. If the job
CCSID is 65535 data management will be leaving the data as 1208 on input
and output. What is your job CCSID when running the RPG program? Hopefully
some variant of 424.

By "gibberish" when using CPYF do you mean seeing totally different
characters? I would have expected (though have not used CPYF) to just get
subs (x'3F') for all the non-424 data (most likely just a lot of reverse
image blobs, not random characters/gibberish) -- but then my expectations
and reality do, at times, not line up and become learning opportunities :)

Bruce Vining

On Mon, Apr 7, 2014 at 2:02 AM, Gad Miron <gadmiron@xxxxxxxxx> wrote:

Hello pundits

We are using a home grown Java utility to upload (to the IBM i) external
csv transactions report files where some of the fields are variable length
multi multi lingual (English, German, Arabic, Korian, Hebrew, Japanese
These fields (Name, Title..) are defined in the DDS with CCSID(1208). the
file itself is

Browsing the file using Access for Web the data look fine.

I CPYFed data from this file to another same-structure standard (CCSID 424)
file and it looks as if conversion to CCSID 424 works OK.
i.e English and Hebrew displays correctly on a green screen emulation
terminal and other languages looks "Gibberish"

Now, when using RPG to do the same, i.e reading the file and writing to
another standard 424 file, conversion does not seems to work and all data
looks garbled.

What am I missing? RPG compiler paramaters perhaps?

Being a code page illiterate I do need your help

This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives

This thread ...


Return to Archive home page | Return to MIDRANGE.COM home page