To change the CCSID of the source physical member from one CCSID to another, use the command CPYF with parameter FMTOPT(*MAP) to obtain the copy of the source physical member in another CCSID.
The following example shows you how to change a member in a source file with CCSID 037 to CCSID 273.
Example:
CRTSRCPF FILE(MYLIB/NEWCCSID) CCSID(273)
CPYF FROMFILE(MYLIB/QCPPSRC) TOFILE(MYLIB/NEWCCSID) FROMMBR(HELLO) TOMBR(HELLO)
MBROPT(*ADD) FMTOPT(*MAP)
Notes:
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.