ILE RPG Language Reference


CCSIDs of Data

The CCSID of character data is only considered when converting between character and UCS-2 data or between character and graphic data (unless graphic CCSIDs are being ignored).

When converting between character and graphic data, the CCSID of the character data is assumed to be the graphic CCSID related to the job CCSID.

When converting between character and UCS-2 data, if CCSID(*CHAR:*JOBRUN) is specified on the control specification, the CCSID of the character data is assumed to be job CCSID. Otherwise, it is assumed to be the mixed-byte CCSID related to the job CCSID.

The CCSID of UCS-2 data defaults to 13488. This default can be changed using the CCSID(*UCS2) keyword on the Control specification. The CCSID for program-described UCS-2 fields can be specified using the CCSID keyword on the Definition specification. The CCSID for externally-described UCS-2 fields comes from the external file.

Note:
UCS-2 fields are defined in DDS by specifying a data type of G and a CCSID of 13488 or 1200.

The CCSID of graphic data defaults to the value specified in the CCSID(*GRAPH) keyword on the Control specification. The CCSID for program-described graphic fields can be specified using the CCSID keyword on the Definition specification. The CCSID for externally-described graphic fields comes from the external file.


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