× 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.



Alan

If you must use QDCXLATE, I find that the better table to use is *Q037337850 for US EBCDIC to ASCII. For ASCII back to EBCDIC, use *Q850337037. These are much closer.

Bruce V can straighten me out on these - please!!

HTH
Vern

Vern Hamberg wrote:
Alan

Those tables are probably the worst things to use for conversion. The recommended method is to use the iconv() api. QDCXLATE is essentially deprecated - still usable but nothing updated in centuries with it.

http://www.mcpressonline.com/index2.php?option=com_content&do_pdf=1&id=1552 is an article that discusses this. A quote from that article -

"A problem occurs when using QDCXLATE, however. When the IBM-supplied conversion tables QASCII, QEBCDIC, and QTCPASC are used, the API produces invalid results."

That article shows you how to use iconv().

HTH
Vern

Alan Shore wrote:
Good day all
I am using Scott Klements excellent RPGIV Socket tutorial and am having
some success

I am trying to connect to a Windows server 2008 standard definition 32 bit
(or so I am told)

I can definitely prove that I am connecting and that something is being
sent, but it looks like the api/program on the server has a problem reading
the data

I am translation the EBCDIC to ASCII using the table QTCPASC using the
QDCXLATE api, however my instinct is that this is probably wrong
I am waiting for the provider of the api to call me, but my question I need
answering is
If that table is not the correct one to use, how do I find out what table I
should be using?

My googling resulted in the following web page

http://www.mcpressonline.com/programming/rpg/determining-and-providing-the-appropriate-ccsid-for-an-api-external-system-or-language.html

Determining and Providing the Appropriate CCSID for an API, External System, or Language



My question is
What question do I ask ti discover what I should be using to translate?

Hopefully my e-mail makes sense

As always, any and all responses are MUCH appreciated



Alan Shore
Programmer/Analyst, Direct Response
E:AShore@xxxxxxxx
P:(631) 200-5019
C:(631) 880-8640
"If you're going through Hell, keep going" - Winston Churchill


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.