|
date: Mon, 7 Apr 2014 16:39:30 -0500
from: Bruce Vining <bvining@xxxxxxxxxxxxxxx>
subject: Re: RPG CCSID conversion - help needed
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 punditslength
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
multi multi lingual (English, German, Arabic, Korian, Hebrew, Japanese424)
etc..)
These fields (Name, Title..) are defined in the DDS with CCSID(1208). the
file itself is
CCSID 424
Browsing the file using Access for Web the data look fine.
I CPYFed data from this file to another same-structure standard (CCSID
file and it looks as if conversion to CCSID 424 works OK.data
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
looks garbled.list
What am I missing? RPG compiler paramaters perhaps?
Being a code page illiterate I do need your help
Gad
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
--
Regards,
Bruce
www.brucevining.com
www.powercl.com
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.