× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Through the years, in my experience I have always used the iconv() API, a C
Standard Library that's included in WDS and you can invoke from an RPG
program. Its use has a few tricky steps but this method is safer. What I
do, is to convert everything with iconv() especially when I need UTF-8
(CCSID 1208).

Do you know exactly if you only need ASCII? You could use iconv() with
CCISD 1202 for Windows or CCSID 819 for Unix/Linux recipients.
There is more flexibility but a bit of more work and even so it's worth it.

HTH

JS

El jue, 17 oct 2024 a las 7:34, Suren K (<suren7437@xxxxxxxxx>) escribió:

Hi All,

We are currently using the QDCXLATE function to convert the EBCDIC to ASCII
conversion using Type as QASCII and send the ASCII data to an external
interface (Non IBMi Product).

But I could see some irregularities which IBMi already notified in the
below link

https://www.ibm.com/docs/en/iis/11.7?topic=tables-conversion-table-irregularities

So, currently in the RPG program before conversion I am going to scan and
replace characters accordingly so that the conversion happens correctly.

For example ! in EBCDIC will be converted as ] in ASCII and also | in
EBCDIC will be converted as ! in ASCII. So if a text WOW! needs to
converted into ASCII, instead of sending WOW! in QDCXLATE function I will
send WOW|.

Could you please let me know whether this is the only solution to address
this issue or do we have some functions readymade available with IBMi to
take care of this?

Regards,
Suren
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.