Friends,
I am back after a long time hoping to solve a problem with CCSID Conversion,
BackGround,
From iSeries, we generate a flat file with data and FTP the file to the Linux Server. The Flat file data may contain mixed characters for different region, For example - English & Greek for Greece | English and Russian for Russia and completely English. Default CCSID for Flat file is 037 English
So, for languages such as Greece, Russia - I will be creating file with appropriate CCSID and copy this data to the new file before FTP.
Problem,
I need to send the file in UTF-8 (Unicode) format to the Linux Server. When I directly send the file in 1208 format - the FTP command fails with conversion error to 819. I believe the problem is by default FTP uses ASCII. I tried changing it using the type keyword( example TYPE 1208 C) . But, it does not work.
I tried using CPYTOIMPF file for conversion as well - but the file was received as 'Octat-stmf' format in Linux Server
Tried several other possible ways without luck. Your inputs are much appreciated.
Regards,
Vinoth
I am back after a long time hoping to solve a problem with CCSID Conversion,
BackGround,
From iSeries, we generate a flat file with data and FTP the file to the Linux Server. The Flat file data may contain mixed characters for different region, For example - English & Greek for Greece | English and Russian for Russia and completely English. Default CCSID for Flat file is 037 English
So, for languages such as Greece, Russia - I will be creating file with appropriate CCSID and copy this data to the new file before FTP.
Problem,
I need to send the file in UTF-8 (Unicode) format to the Linux Server. When I directly send the file in 1208 format - the FTP command fails with conversion error to 819. I believe the problem is by default FTP uses ASCII. I tried changing it using the type keyword( example TYPE 1208 C) . But, it does not work.
I tried using CPYTOIMPF file for conversion as well - but the file was received as 'Octat-stmf' format in Linux Server
Tried several other possible ways without luck. Your inputs are much appreciated.
Regards,
Vinoth
Comment