Creating a Source Physical File with a Coded Character Set Identifier

You specify the character set you want to use with the CCSID parameter when you create a source physical file. The default for the CCSID parameter is the CCSID of the job.

This figure shows you what happens when you create a program object that has a root source member with CCSID 273 and include files with different CCSIDs. The Integrated Language EnvironmentC compiler converts the include files to CCSID 273. The program object is created with the same CCSID as the root source member.

Figure 1. Source File CCSID Conversion
Note: Some combinations of the root source member CCSID and the include file CCSID are not supported.

Example:

The following example shows you how to specify CCSID 273 for the source physical file QCSRC in library MYLIB.

To create a source physical file with CCSID 273, type:
CRTSRCPF FILE(MYLIB/QCSRC) CCSID(273)