GX (hex) graphic constant

The GX graphic constant is a contiguous sequence of hex digits, in multiples of 4, enclosed in single or double quotation marks and followed immediately by GX. Each group of 4 hex digits represents one DBCS character.

Syntax

Read syntax diagramSkip visual syntax diagram'hex-digit hex-digit hex-digit hex-digit'GX
Table 1. Examples of GX (hex) graphic constants
'81a1'GX represents one DBCS character
""gX is the same as ''g
Note: The use of GX can limit the portability of a program.