CHARVAL

CHARVAL returns the CHARACTER(1) value corresponding to an integer.
Read syntax diagramSkip visual syntax diagram
>>-CHARVAL--(--n--)--------------------------------------------><

n
Expression converted to UNSIGNED FIXED BIN(8) if necessary.

CHARVAL(n) has the same bit value as n (that is, UNSPEC(CHARVAL(n)) is equal to UNSPEC(n)), but it has the attributes CHARACTER(1).

CHARVAL is the inverse of RANK (when applied to character).






Published: 23 December 2018