Put a file from MVS to UNIX

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
msmith57
Posts: 10
Joined: Wed May 06, 2009 1:57 pm

Put a file from MVS to UNIX

Post by msmith57 »

I use DTLSPAWN to run cozsftp to send a file from the mainframe to a UNIX box running SSH. The file is variable length and I need the RDW information to be sent with the data so I set these options ‘lzopts linerule=ibmrdw,mode=text’. The RDW data is being passed but the file on the UNIX side is wrapping at 80 bytes. The MVS file is vb record length 137. Is there a variable I’m missing.
coz
Posts: 391
Joined: Fri Jul 30, 2004 5:29 pm

Post by coz »

Generally, RDWs are used with binary data. However, there's no reason that what you want to do shouldn't work. In fact, it does in our test cases - each RDW is followed by the entire text record, translated to ASCII. This includes records over 80 bytes in length.

Perhaps the 80 byte wrapping has to do with how you're displaying it on your unix box? Try using a hex facility like hexcat to see the actual RDW information.
Post Reply