Code Page Conversion Command

You can use the Code Page Conversion command by executing the command directly from the command line.

To accomplish the MFT Platform Server Code Page Conversion of IBM i system files from the command, enter the following command from the command line and press the <F4> key to present the command: CFCDEPGECV.



Enter all the MFT Code Page Conversion command parameters and press Enter.

Note: All MFT Code Page Conversion command parameters are validated and must be entered.

Code Page Conversion Parameters

Listed below are the parameters, with a brief description, for the panels when the CFCDEPGECV command is issued. Also listed in parenthesis are the parameters that would be used on the command line.

  • From File Name (FROMFILE) - Specifies the name of the local file that is converted.
  • Library - Specifies the library name containing the file that is converted.
  • Member (*req. field) - Specifies the member name within the file that is converted.
  • To File Name (TOFILE) - Specifies the name of the local file that receives the converted data.
  • Library - Specifies the library name containing the file that receives the converted data.
  • Member (*req. field) - Specifies the member name within the file that receives the converted data.
  • From CCSID Code (*req. field) - Defines the Coded Character Set Identifier that the from-file contains. Valid values range from 00001 through 65533.
  • To CCSID Code (*req. field) - Defines the Coded Character Set Identifier that the to-file contains. Valid values range from 00001 through 65533.

Command Line Code Page Conversion Examples

Example 1

You can run the Code Page Conversion command from the command line. The example below shows an MFT Platform Server Code Page Conversion on the IBM i system:

CFCDEPGECV FROMFILE(TESTMBR/TESTLIB/TESTFILE) TOFILE(TESTMBR2/TESTLIB2/TESTFILE2) FCCSID(00874) TCCSID(00838)

Example 2

You can run the Code Page Conversion command from the command line. The below example shows a MFT Platform Server Code Page Conversion on the IBM i system:

Below is an example of adding Post Processing entries utilizing the MFT Platform Server Code Page Conversion command on all MFT Platform Server transfer panel commands from the CFSRF panel. The first entry is calling a custom code page conversion post process driver program. The second entry is executing the MFT Platform Server Code Page Conversion command.



If you want to add the same post-processing examples shown above from the command line, enter the following command:

POSTPROC(*YES) POSTFLG1(*S) POSTACT1(*L) POSTTYP1(*CMD) POSTDAT1('CALL PGM(A2E) PARM(''TESTMBR/TESTLIB/TESTFILE'' ''TESTMBR2/TESTLIB/TESTFILE'')')

POSTPROC(*YES) POSTFLG1(*S) POSTACT1(*L) POSTTYP1(*CMD) POSTDAT1('CFCDEPGECV FROMFILE(TESTMBR/TESTLIB/TESTFILE) TOFILE(TESTMBR2/TESTLIB2/TESTFILE2) FCCSID(00874) TCCSID(00838)')