Posted: Wed Feb 05, 2014 1:05 pm Post subject: Mainframe as sFTP server - handle EBCDIC files
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.
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 .
I am doing FTP from mainframe to window server with the help of JCL ftp job. But now I need to get the same file from window server to mainframe server, Can anyone help in this or provide me some sample code for that ?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum