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




Hello,

I am looking for some coding examples for converting CCSID 13488 to CCSID 37. I am looking into using a password validation pgm that has to allow for incoming parms in CCSID 13488.....Any help would be greatly appreciated. TIA, Jim !

Personally, I like to use the iconv() API to convert from one CCSID to another. I'd suggest translating to whatever the job's default CCSID is rather than hard-coding 37. That way, if you ever change it, things adapt automagically.

I'd also suggest using CCSID 1200 instead of 13488, since 1200 is a superset. But, that's up to you.

The biggest problem you'll face is that there are many characters that exist in Unicode but don't exist in CCSID 37 (which is a single-byte EBCDIC CCSID). Consequently, you'll get errors on characters that can't be converted unless the user is careful to only supply things that exist in ccsid 37. (But, in that case, why use 13488?!)

It would probably be better for you to make your validity checking routine understand CCSID 13488 rather than convert it to 37.


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.