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.

==================================
MORE INFORMATION ON THIS TOPIC
==================================

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.


This was last published in September 2001

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchEnterpriseLinux

SearchDataCenter

Close