ascii_to_ebcdic()


Convert a string from ASCII character codes to EBCDIC character codes.

Syntax

ascii_to_ebcdic(string)

 

Parameter

Parameter

Definition

string

ASCII encoded string to be converted to EBCDIC 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 ebcdic_to_ascii()

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.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*