Translate EBCDIC to ASCII
Note: Many $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $E2A function is EbcdicToAscii. For a full list of string and numeric conversion functions, see List of String methods and List of Float methods.
The $E2A function returns a string that is the ASCII equivalent of the (presumed) EBCDIC input string. $E2A is Longstring capable, that is, it can receive an input Longstring and will produce an output Longstring.
%ascii = $E2A(ebcdic_val)
%ascii is a string set to the EBCDIC-to-ASCII translation of ebcdic_val, the EBCDIC string to be translated.
- The inverse of $E2A is $A2E.
- $E2A uses the Janus "STANDARD" ASCII-to-EBCDIC translation tables, and it provides no mechanism for overriding these tables. However, as described in translation tables, you are able to modify the STANDARD tables if necessary.
- The $Ascii function provides the same type of translation as $E2A, but it is only available if the FUNU module is linked in, it does not use the Janus translation tables, and it is not Longstring capable.