Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

INTEGER-TO-CHARACTER( ) Convert integer to character

&pagelevel(3)&pagelevel

Domain: Conversion functions

The INTEGER-TO-CHARACTER( ) function converts an integer into a character (C string).

The number is interpreted as the integer value of the EBCDI code for a character, and this character is returned.

INTEGER-TO-CHARACTER( ) is the reverse function of CHARACTER-TO-INTEGER( ).

Format

INTEGER-TO-CHARACTER( )

INT-TO-CHAR( )

INTEGER = arithm_expression

Result type

STRING (<string 1..1>)

Input parameters

INTEGER = arithm_expression
Designates the integer to be converted, where 0 <= integer <= 255 applies.

Result

Character in EBCDI code in the form of a string.

Error message

SDP0416  NUMBER OUT OF RANGE

Example

/B = INTEGER-TO-CHARACTER(INTEGER = 129)
/SHOW-VARIABLE B
B = a

/C = INTEGER-TO-CHARACTER(INTEGER = 193 + 16)
/SHOW-VARIABLE C
 C = J