On 3/31/2011 11:12 AM, David Gibbs wrote:
LuisMaldonado wrote:
I need to find the ASCII value of a caracter in a RPG.

Use iconv.

http://urlq.us/h or http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/apis/iconv.htm.

Off the top of my head, I think the ASCII ccsid is 437.


There are about as many ASCII ccsids as there are EBCDIC ccsids. There's some APIs that will give the equivalent ASCII CCSID for a given EBCDIC CCSID.

First you call QTQGESP to get the encoding scheme for the EBCDIC CCSID (whether it's ebcdic-single-byte, ebcdic-mixed-byte-with-shifts, or ebcdic-double-byte).

Then you calculate the matching ASCII encoding scheme (single-byte, mixed-byte, double-byte).

Then you call QTQGRDC to get the CCSID that matches the EBCDIC CCSID for that ASCII encoding scheme.


This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2026 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.