SFTP Append to Z/os Dataset using WinSCP

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
hareball
Posts: 3
Joined: Mon Nov 15, 2010 8:35 am

SFTP Append to Z/os Dataset using WinSCP

Post by hareball »

Does anyone know the simplest way to append to a dataset using WinSCP SFTP and CoZ?

It looks like append is now supported by WinSCP -
http://winscp.net/eng/docs/script_commands

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

Post by dovetail »

There are a couple of issues.

1) It is not clear to me how winscp is implementing "append". OpenSSH does not support the SSH2_FXF_APPEND flag on open, and Co:Z SFTP is based on OpenSSH 5.0p1.

2) You can append to a dataset with Co:Z SFTP if you set the "disp=mod" setting:

ls /+disp=mod

the problem with Winscp is that it uses more than one SFTP session, and although you can set a setting by nagivating to the "/+" directory and renaming the "newsetting" file to "disp=mod", this setting won't apply to the session that WinSCP uses to do the actual transfer. We have pleaded with the developer to change WinSCP so that you can configure it to use only one session, but these requests have not been accepted.
Post Reply