Converting data items (intrinsic functions)

You can use intrinsic functions to convert character-string data items to several other formats, for example, to uppercase or lowercase, to reverse order, to numbers, to one code page from another, or to hexadecimal or binary digits. You can also convert hexadecimal character strings or bit character strings to alphanumeric data items.

About this task

You can use the NATIONAL-OF and DISPLAY-OF intrinsic functions to convert to and from national (Unicode) strings.

You can also use the INSPECT statement to convert characters.

Examples: INSPECT statement