Problem solve Get help with specific problems with your technologies, process and projects.

Changing CCSID of a file in IFS

Learn a easy way to change CCSID of a file in IFS.

Files transferred from an ASCII system to the AS/400, may be required to have the CCSID of the job on the AS/400 system, instead of that of the original ASCII system. One way of doing it is to use the CPYFRMSTMF and CPYTOSTMF CL commands or CPY command if the OS version is V5R1.

Another simple way of doing it in the QSHELL is:
cat ascii.file >> ebcdic.file Where ascii.file is the ascii file. The file ebcdic will be created in the required CCSID.

Now if you execute the following command, cp ebcdic.file ascii.file ascii.file will also have the CCSID of the AS/400.


The Best Web Links: tips, tutorials and more.

Ask your programming questions--or help out your peers by answering them--in our live discussion forums.

Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.

Dig Deeper on iSeries CL programming