I'm trying to help my co-worker resolve the following issue: We have a CL Program that generates a batch input file containing SFTP commands. The process works fine for our HQ iSeries; however, we have 21 independently operated iSeries where the SFTP commands appear as EBCDIC encoded characters: Ã @ ¢` £¢¢` ¥`â Æ aÄæaãÖmÄÄâ%`
IBM suggests that the input file must be created using an ACSII text editor, but that's not possible in this case because the CL Program creates the input file on-the-fly. See IBM Reference: https://www-304.ibm.com/support/docview.wss?uid=nas8N1014104
Is there setting that we can check on the iSeires or a command line parameter that can be added to the CL program?
Our CL Program basically runs a shell script that echos out the commands that creates the SFTP batch input file. See sample:
echo Cd abc-dir-$1-SharedFolder/DIR/PATH > /QOpenSys/download/sftpbatch.txt
echo -rm $2.mbr >> /QOpenSys/download/dwbatch.txt
echo put /qsys.lib/somelib.lib/$2.file/$2.mbr >> /QOpenSys/download/sftpbatch.txt
echo quit >> /QOpenSys/download/sftpbatch.txt