DDS for physical and logical files


Keyword considerations (positions 45 through 80)

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.

For logical files the following characteristics must be true before the CCSID keyword is allowed on a logical file field.

The DFT keyword may 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.

Concatenation of Unicode fields

Unicode fields can be used in the CONCAT keyword. The following rules apply:

Join logical file support

A UTF-8 field may 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.

Select/Omit fields in logical files

UTF-8 and UTF-16 fields are allowed as select and omit field specifications.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]