binary transfer and linerule

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
morph797
Posts: 3
Joined: Thu Apr 07, 2011 10:00 am

binary transfer and linerule

Post by morph797 »

We are transferring several MVS files over to a UNIX server using mode=binary. On the UNIX side the file has no line/record terminator. Is there a way to provide this. The linerule options says it only works in text mode.

Thank You
dovetail
Site Admin
Posts: 2025
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

Some linerules work with binary data, and some do not.

Consider that if your linerule was "lf" or "crlf" that there might be those characters also in the binary data, which would cause trouble.

But, linerule=rdw can be used with mode=binary just fine.
Also, if you have fixed-length records, you can simply use mode=binary with linerule=none (the default).
Post Reply