CHR_ITOC

Encode an INTEGER value as a string

Description:

Encode an integer value as a (decimal) character string, using as concise a format as possible, and return the number of characters used. In the event of an error, ’∗’s will be written into to the string.

Invocation

CALL CHR_ITOC( IVALUE, STRING, NCHAR )

Arguments

IVALUE = INTEGER (Given)
The value to be encoded.
STRING = CHARACTER ∗ ( ∗ ) (Returned)
The string into which the integer value is encoded.
NCHAR = INTEGER (Returned)
The field width used in encoding the value.