Converted character replacement data type field

A replacement data type field supports CCSID processing. This replacement data type field is called a convertible character field (*CCHAR). A *CCHAR replacement data type field is a variable-length field, and therefore the field might increase or decrease in length when it is converted.

Example: Adding a message description with CCSID support

The following example shows how to add the message description TST0006 to message file MYMSGF. The message description has 2 replacement data type fields. One field is a character field length 10. The other field is a convertible character field with varying length. Use the ADDMSGD command as follows:

ADDMSGD MSG('This is *CHAR &1;  This is *CCHAR &2;') MSGID(TST0006) +
MSGF(MYLIB/MYMSGF) FMT((*CHAR 10) (*CCHAR *VARY 2))