Learn about how Unicode data is used with some DDS keywords.
The CCSID keyword is used to enable an A-type or G-type field to contain Unicode data.
The CCSID parameter must have a CCSID using a Unicode encoding scheme. This keyword is enabled for both physical and logical files.
The DFT keyword can contain SBCS, bracketed-DBCS, or bracketed-DBCS-graphic character strings when specified on a Unicode-capable field.
You can use the COMP keyword only to compare data in another Unicode-capable field. Two equal length UTF-8 data strings can be compared to each other using their hex values regardless of character boundaries.
You can specify a character literal on a select or omit field that is tagged with a Unicode CCSID on the COMP, RANGE, and VALUES keywords. The maximum length of the literal is equal to the number of Unicode code units that is defined in positions 30 to 34 of the DDS specification.
The VARLEN keyword can be used on Unicode fields.
Logical files can have UTF-8 and UTF-16 data keys.
Unicode fields can be used in the CONCAT keyword. The following rules apply:
A UTF-8 field can be joined to another UTF-8 field in a join logical file. UTF-16 fields can be joined. To join a UTF-8 or UTF-16 field to a CHAR field, for example, the UTF-8, UTF-16, or CHAR field must be redefined in the logical file to the same type field.
UTF-8 and UTF-16 fields are allowed as select and omit field specifications.