sftp client on ZOS with linerule=CRLF

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
vde
Posts: 1
Joined: Fri Jul 08, 2011 1:45 pm

sftp client on ZOS with linerule=CRLF

Post by vde »

I am using COZSFTP client on ZOS. CLIENTCP and SERVERCP are set ,other options are: linerule=CRLF and mode=text. files are put from ZOS to a Unix platform. The guys from the Unix side are telling me that every lines of the file are OK (ending with correct CR LF caracters) BUT the last line of the file is not ending with CR LF. is there any option to change that ? we need that CR LF sequence will also be added at the end of the last line of the file.
Thank you for your help on that topic!
dovetail
Site Admin
Posts: 2025
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

Please post your z/OS client JCL / script so that I can see the details of what you are doing.

Also, what kind of source file do you have on the z/OS side? Is it a Unix file or a dataset?


If it is a Unix file and it ends in a line terminator, then the terminator will be translated to CRLF on the remote side. But if it doesn't end in a terminator, then there will not be a terminator on the remote side either.
Post Reply