On 9/23/2013 10:22 AM, John McKown wrote:
If you mean a program, then the UNIX "iconv" command can do that. There is
also the "iconv" set of C language subroutines if you want to write your
own.
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/edclb1c0/3.440
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/cbcpg1c0/8.6.3
If you are really good with COBOL, you can probably figure out how to call
these using COBOL.
Actually, COBOL has the builtin function DISPLAY-OF that
converts UTF-16 to ASCII, EBCDIC, or UTF-8
There is a similar builtin in PL/I. For HLASM you can
use the various translate instructions (but you gotta'
build your own translate table).
Likewise with PL/I or HLASM. If _I_ needed these in
COBOL, I would likely write an HLASM stub routine to "marshall" the
argument to/from the COBOL / C calling conventions.
DFSORT can do it, with some difficulty, on a "field" basis by using the
TRAN=ALTSEQ phrase in an INREC or OUTREC FIELDS= command. Too bad there
isn't an easy way that I can see to just use UNICODE System Services.
--
Kind regards,
-Steve Comstock
The Trainer's Friend, Inc.
303-355-2752
http://www.trainersfriend.com
* We are going out of business effective 30 December, 2013
* To purchase a set of our training materials at terrific prices,
check out our Going Out Of Business Sale:
http://www.trainersfriend.com/SpecialSale
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN