A (ASCII) character constant

An A (ASCII) character constant is a character constant that ends with an A. The data in an A character constant is converted to ASCII.

Syntax

Read syntax diagramSkip visual syntax diagram'character'A
character
All characters in an A character constant must be code page invariant and occupy only one byte if converted to UTF-8.

Example

'123'A represents the hex value '313233'X .

This representation is independent of the setting of the DEFAULT(ASCII | EBCDIC) option.