ascii() function

The ascii() function converts a string of EBCDIC-encoded characters into their equivalent ASCII values.

Syntax

ascii(exp)

Parameter(s)

exp String of EBCDIC-encoded characters to convert.

Description

The ascii() function is the inverse of the ebcdic() function.

Note: The ascii() function cannot determine whether the string being passed to it is already ASCII or not. Passing an ASCII string through the ascii() function produces undefined results.