INT2CHAR: Translating an Integer Value Into a Character

How to:

The INT2CHAR function translates an integer into the equivalent ASCII or EBCDIC character, depending on the operating system.

Syntax: How to Translate an Integer Value Into a Character

INT2CHAR(value)

where:

value

Is the integer to translate into its equivalent ASCII or EBCDIC character.

Example: Translating an Integer Value Into a Character

INT2CHAR translates the integer value 93 into its character equivalent.

MAINTAIN
CHAR/A1=INT2CHAR(93);
TYPE "CHAR IS <CHAR";
END

On an ASCII platform, the result would be a right bracket (]). On an EBCDIC platform, the result would be a right parenthesis.