Venkat, The reason for this can be found clearly hidden in the z/OS OpenSSH User's Guide, CH 4:
<quote> By default, sftp assumes that files are binary. Files transferred between EBCDIC and ASCII platforms are not converted. ... By default, scp performs ASCII/EBCDIC conversion on files. For more information about how scp performs conversion, see Chapter 7, “Globalization on z/OS systems,” on page 55. </quote> On Wed, Dec 12, 2018 at 4:42 AM venkat kulkarni <[email protected]> wrote: > Hello Group, > > We identified the issue and resolve it and the solution is, if we use SCP > to transfer file from AIX to Mainframe, data gets corrupt during > transmission. > But when we use SFTP to transfer file from AIX to Mainframe, this process > works perfectly. > > I am unable to find reason, why SCP causing this issue. But problem has > been solved. > Thank you so much for helping always . > > On Mon, Dec 10, 2018 at 10:21 PM Paul Gilmartin < > [email protected]> wrote: > > > On Mon, 10 Dec 2018 21:01:36 +0300, venkat kulkarni wrote: > > > > >Hello All, > > > > > >We have strange SFTP output cases. > > > > > >1) We had requirement of sending ascii file using SFTP from Solaris to > > >Mainframe . So, we used DD command to convert this ascii file into > ebcdic > > > > > Please supply more information for diagnosis. E.g. for a simple > > original.file such as: > > > > 1234 > > ABCD > > abcd > > Hello, World! > > > > od -tx1 original.file # Post the result here. > > > > Convert the file; Post the command > > > > od -tx1 converted file # Post the result here. > > > > Transmit the file; Post the commands. > > > > od -tx1 received.file # Post the result. > > > > -- gil > > > > ---------------------------------------------------------------------- > > For IBM-MAIN subscribe / signoff / archive access instructions, > > send email to [email protected] with the message: INFO IBM-MAIN > > > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
