Joined: 07 Feb 2009 Posts: 1220 Location: Vilnius, Lithuania
Harold Barnes wrote:
On my previous post I received fantastic support in my enlightenment of using translate() to convert EBCDIC to/from ASCII,
I'm assuming I need to write/plagiarize a codepage table for 0037/1208.
Since this is for tcp/ip communication between a TSO client (rexx) and a pc server (c# gui) I need the conversion to be part of the rexx script instead of a batch iconv file conversion.
Maybe there is a better way to do this instead of using translate()?
You cannot use translate(), as it only translates single bytes. Some of your 0037 characters will need to be translated to 2(+) byte characters in 1208, and some 2(+) byte characters in 1208 might not be translateable to a single character in 0037.