%CHAR (assembler, disassembly, and LangX COBOL)

Returns the EBCDIC character value of an operand.

Read syntax diagramSkip visual syntax diagram%CHAR(expression) ;
expression
A valid assembler, disassembly, or LangX COBOL expression.

Examples

Assuming that R6 contains the address of a character string of length five, enter the following command:

LIST %CHAR(_STORAGE(%GPR6+1::5))

The Log window displays the corresponding character string.

Refer to the following topics for more information related to the material discussed in this topic.