Use this file- or field-level keyword on physical files and this field-level keyword on logical files to specify a coded character set identifier for character fields.
The format of the keyword is:
CCSID(value [field-display-length])
The value is a number up to 5 digits long that identifies a specific set of encoding scheme identifiers, character set identifiers, code page identifiers, and other relevant information that uniquely identifies the coded graphic character representation used for the data in the field.
For logical files the following characteristics must be true before the CCSID keyword is allowed on a logical file field.
The field-display-length parameter is optional and is only used when the field is referenced by a field in a display file. The parameter is only valid when the value parameter uses the UCS-2 Level 1 encoding scheme. The field-display-length allows the user to control the field size according to the type of data stored in the UCS-2 Level 1 encoding scheme. See the "CCSID (Coded Character Set Identifier) Keyword in DDS" for more information.
When specified at the file level for physical files, the CCSID keyword applies to each character field in the file except those character fields that also have the CCSID keyword specified. If a CCSID value on the physical file field used the UCS-2 encoding scheme, the data type of this field must be type G.
If the CCSID keyword is not specified at the file level and not all character fields have the CCSID keyword specified, then the fields are assigned the job's default CCSID when the file is created.
For a list of the valid CCSIDs for the AS/400 system, see the National Language Support book.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.