Change the Coded Character Set ID (CCSID) of a file

All wsadmin files must have a CCSID value of 819 or 1252. If you use the Edit File (EDTF) command to create a properties file or script, the default CCSID is 37. You must manually specify the correct CCSID when you create the file. To change the CCSID of an existing file, use the Copy (CPY) command to create a new copy of the file with the correct CCSID.

Specify the CCSID for a few file

To create a new properties file in CCSID 819 with the EDTF command, follow these steps:

  1. On an OS/400 command line, run the EDTF command:

    EDTF ('path/and/file/name')

    where path/and/file/name is the fully-qualified path of the file that you want to create.

  2. Press F15 (Shift + F3) for Services.

  3. For selection, type 3.

  4. Change the value of Change CCSID of file to 00819.

  5. Press Enter to accept the changes. The following message is displayed:

    The file Coded Character Set ID (CCSID) has changed from 00037 to 00819.
  6. Press F3 to exit the Services screen.

  7. On the Edit File screen, press F2 to save the file.

  8. Enter the content of the file between the Beginning of data and End of data lines.

  9. Press F2 to save the file.

  10. Press F12 to exit.

Change the CCSID of an existing file

To change the CCSID of an existing properties file that has the wrong CCSID, run the CPY command from an OS/400 command line:

CPY OBJ('existing/file/path') TOOBJ('new/file/path') TOCCSID(819)

where existing/file/path is the fully-qualified path of the existing properties file and new/file/path is the fully-qualified path of a new copy of the file.