ebcdic_to_ascii()
Convert a string from EBCDIC character codes to character codes.
Syntax
ebcdic_to_ascii(string)
Parameters
Parameter | Definition |
---|---|
string | EBCDIC encoded string to be converted toASCII encoding |
Description
Converts string of ASCII character codes to the corresponding EBCDIC character codes.
EBCDIC characters that do not exist in ASCII are arbitrarily assigned to extended ASCII characters (character codes greater that 128). However they are mapped one-to-one so that data can be converted between EBCDIC and ASCII repeatedly without data loss. See also ascii_to_ebcdic().
PATROL normally handles character conversion internally, and this sort of conversion is not normally required. However, this function may be used to force conversion if required when using external resources.