Figure 22 shows how to specify the CCSID keyword for physical files.
Figure 22. Specifying the CCSID Keyword for a physical file
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 00010A CCSID(285) 00020A R RECORD1 00030A FIELD1 75G CCSID(13488) 00040A FIELD2 150A 00050A FIELD3 20A A
FIELD1 is assigned a UCS-2-ccsid value of 13488. FIELD2 and FIELD3 are assigned a CCSID value of 285.
Figure 23 shows how to specify the CCSID keyword on a corresponding logical file.
Figure 23. Specifying the CCSID Keyword for a logical file
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 00000A 00010A R RECORD1 00020A FIELD1 75A CCSID(37) 00030A FIELD2 150G CCSID(13488 80) 00040A FIELD3 20A A
The logical file's FIELD1 is assigned a SBCS CCSID value of 37. Conversion occurs between the physical file and the logical file for FIELD1 since the physical file field contains UCS-2 data. The logical file's FIELD2 is assigned a UCS-2-ccsid value of 13488. Conversion occurs between the physical file and the logical file for FIELD2 since the logical file contains UCS-2 data. A CCSID is not specified for FIELD3.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.