Unicode considerations for database files: Data type (position 35)
The valid data types for Unicode data are the G (Graphic) data type and the A (Character) type.
- G (Graphic)
- Type G, in combination with the CCSID keyword, specifies that this field
contains UTF-16 data.
Normally, by specifying G, the field contains graphic-DBCS EBCDIC data. In combination with the CCSID keyword, the field contains UTF-16 data. When conversion is necessary between corresponding fields in a physical and logical file, data will be mapped between the characters of the UTF-16 CCSID and the CCSID of the corresponding field.
- A (Character)
- Type A, in combination with the CCSID keyword (with 1208), specifies that
this field contains UTF-8 data.
Normally, by specifying A, the field contains EBCDIC data. In combination with the CCSID keyword, the field contains UTF-8 data. When conversion is necessary between corresponding fields in a physical and logical file, data will be mapped between the characters of the UTF-8 CCSID and the CCSID of the corresponding field.