Processing math: 100%

CHR_IACHR

Return the ASCII value for the given character

Description:

The given character, encoded using the machine’s character set, is converted to an integer indicating its position in the ASCII character set. If no such character exists, zero is returned.

Invocation

RESULT = CHR_IACHR( CVALUE )

Arguments

CVALUE = CHARACTER 1 (Given)
The character to be converted to its position within the ASCII character set.

Returned Value

CHR_IACHR = INTEGER
An integer position within the ASCII character set.