Mainframe as sFTP server - handle EBCDIC files
Moderators: Frank Yaeger, DikDude, Moderator Group
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.
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 !!
DikDude wrote:Post a bit of the file as it sits on the remote system (a few records will do).
Post the sFTP commands being used.
Text file from windows is transferred via sFTP to OMVS in binary mode. And below is the command used to copy from omvs to mvs.
OCOPY INDD(DATAIN) OUTDD(DATAOUT) TEXT CONVERT((BPXFX311)) TO1047
When trasferred as binary, the file look similar to the one that is trasferred in binary mode in manual FTP process. But when compared in superc, it shows all records are different.NicC wrote:What happens when you transfer as binary to the mainframe?
Also not sure how to convert the binary to EBCDIC in mainframe. Please advise.
-
- Member
- Posts: 29
- Joined: Tue Feb 18, 2014 9:13 pm
-
- Member
- Posts: 29
- Joined: Tue Feb 18, 2014 9:13 pm
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page