On Mon, 19 Feb 2018 18:17:17 +0000, Frank Swarbrick wrote:

>For whatever its worth, once you determine what "ASCII" code page the source 
>is in and what EBCDIC code page you want the result in you can use Enterprise 
>COBOL native intrinsic functions to perform the conversion.  Let's assume(!) 
>that the source code page is just the basic Latin-1/ISO-8859-1 (IBM CCSID 819) 
>and the EBCDIC code page is U.K. Latin-1 (CCSID 285)...
>The "inner function" converts from ASCII CCSID 819 to UTF-16, and the outer 
>function converts from UTF-16 to EBCDIC CCSID 285.
>This doesn't, of course, answer the question of what the source code page is.  
>They either need to tell you or it needs to be provided as part of the 
Nor does it answer the question of how to handle the error that should be 
on encountering a CCSID 819 character not present in 285.

If the user is in UK, it's likely to be ISO-8859-15 (CCSID 923) rather than 819.

-- gil

For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to