I am trying to create a file in IFS (Integrated File System) on AS400 with a utf-8
ccsid 1208
. What are the possible ways to create an IFS file with a specific CCSID?
What APIs and their parameters should I use to achieve this? Provide a sample RPGLE code to create an IFS file with a specific CCSID.
There are two ways to create a file on the ifs with a specific ccsid.
open()
to create and open the ifs file with a specific ccsid.Syntax of open() api in RPG:Here, in the codepage parameter, you need to specify the ccsid for the ifs file and there you can pass 1208.
QSH
and press Enter to open theQSH Command Entry screen
and use the following command:touch -C 1208 /ifspath/filename.txt