CCSID(*GRAPH : *JOBRUN | *SRC | *HEX | *IGNORE | number)

CCSID(*GRAPH) sets the default graphic CCSID used for data definitions that do not have the CCSID keyword coded.

The default CCSID for definitions can be temporarily changed using the /SET and /RESTORE directives. See /SET.

CCSID(*GRAPH:*JOBRUN)
The DBCS CCSID related to the job CCSID at runtime.
CCSID(*GRAPH:*SRC)
The graphic CCSID associated with the CCSID used to read the source files, which is specified by the TGTCCSID parameter of the CRTBNDRPG or CRTRPGMOD command. The TGTCCSID parameter defaults to TGTCCSID(*SRC), which is the EBCDIC CCSID related to the CCSID of the primary source file. For more information about the TGTCCSID parameter, see the description of the CRTBNDRPG command in Rational® Development Studio for i: ILE RPG Programmer's Guide.
CCSID(*GRAPH:*HEX)
By default, graphic data does not have a CCSID. Graphic variables that are defined without the CCSID keyword cannot be used in CCSID conversions.
CCSID(*GRAPH:*IGNORE)
The CCSID keyword cannot be specified for any graphic definitions in the module. No CCSID conversions are allowed between graphic data and alphanumeric or UCS-2 data in the module. The %GRAPH built-in function cannot be used.
CCSID(*GRAPH:number)
number must be a graphic CCSID. A valid graphic CCSID is 65535 or a CCSID with the EBCDIC double-byte encoding scheme (X'1200').
When CCSID(*GRAPH) is not specified
  • If CCSID(*EXACT) is specified, CCSID(*GRAPH:*JOBRUN) is the default.
  • If CCSID(*EXACT) is not specified, CCSID(*GRAPH:*IGNORE) is assumed.

When CCSID(*GRAPH:*IGNORE) is not in effect, graphic subfields in externally-described data structures will use the CCSID in the external file.

See CCSID of literals and compile-time data for information on the CCSID of graphic literals.