There are some restrictions when you copy from or to a UCS-2 graphic
field.
The CPYF and CPYFRMQRYF commands
with FMTOPT(*MAP) specified are not allowed when you copy from or to a UCS-2
graphic field unless the corresponding field is a UCS-2 or DBCS-graphic field
(any CCSID including 65535), or is a character, DBCS-open, DBCS-either, or
DBCS-only field with a CCSID other than 65535. The only other corresponding
type allowed to have a CCSID of 65535 is DBCS-graphic.
The following parameters for the CPYF command do not support UCS-2 or UTF-16
graphic fields, or UTF-8 character fields:
- FROMKEY(*BLDKEY) that refers to a UCS-2 or UTF-16 graphic keyfield, or
a UTF-8 character keyfield
- TOKEY(*BLDKEY) that refers to a UCS-2 or UTF-16 graphic keyfield, or a
UTF-8 character keyfield
- INCCHAR that specifies a UCS-2 or UTF-16 graphic field name, or a UTF-8
character field name
- INCREL that specifies a UCS-2 or UTF-16 graphic field name, or a UTF-8
character field name