Cómo convertir un INTEGER a CHAR?
hola necesitaria convertir un numero entero a su correspondiente caracter ascii.
ej : tengo una variable entera con el 45 y lo quiero convertir a su correspondiente valor Acii que es '-' ( guion del medio )
probe con este codigo pero me tira un error al compilar .
"The length of "X" in bytes must be a multiple of the size of a Unicode "
data : i type i value 45.
data : x type x.
field-symbols : <fc> type c.
move i to x.
assign x to <fc> casting type c.
move <fc> to c.
write c.
|