CCSIDs must be considered when you assign one character or graphic
value to another. This includes the assignment of host variables.
The database manager uses a common set of system services for converting SBCS
data, DBCS data, MIXED data, and graphic data.
The rules for CCSIDs are as follows:
- If the CCSID of the source matches the CCSID of the target, the value
is assigned without conversion.
- If the sub-type for the source or target is BIT, the value is assigned
without conversion.
- If the value is either null or an empty string, the value is assigned
without conversion.
- If conversion is not defined between specific CCSIDs, the value is not
assigned and an error message is issued.
- If conversion is defined and needed, the source value is converted to
the CCSID of the target before the assignment is performed.