Mainframe as sFTP server - handle EBCDIC files
Posted: Wed Feb 05, 2014 1:05 pm
I need a help in sFTP process, sFTP from midrange(windows/Unix) to mainframe server. The sFTP process is taken care by client people, power shell script has been used. My part is to copy the files from OMVS to mainframe datasets.
Currently we have job for copying a file from OMVS to MVS, text file from windows will be transferred to OMVS via sFTP in Binary mode. Mainframe copy job will copy the file from OMVS to MVS and does the conversion process (ASCII to EBCDIC) as well. The code page conversion used is BPXFX311 TO1047.
Problem
----------
But now the problem is that the file is already in EBCDIC format in windows and is transferred to OMVS via sFTP process. When I tried to copy the file from OMVS to MVS, the output is not as expected.
Note: Since mainframe acts as server, files are trasferred to OMVS in binary mode.
Can someone help me in handling files which are transferred from windows in EBCDIC mode .
Thanks in advance !!
Currently we have job for copying a file from OMVS to MVS, text file from windows will be transferred to OMVS via sFTP in Binary mode. Mainframe copy job will copy the file from OMVS to MVS and does the conversion process (ASCII to EBCDIC) as well. The code page conversion used is BPXFX311 TO1047.
Problem
----------
But now the problem is that the file is already in EBCDIC format in windows and is transferred to OMVS via sFTP process. When I tried to copy the file from OMVS to MVS, the output is not as expected.
Note: Since mainframe acts as server, files are trasferred to OMVS in binary mode.
Can someone help me in handling files which are transferred from windows in EBCDIC mode .
Thanks in advance !!