Co:Z SFTP

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
jupam21
Posts: 12
Joined: Fri Dec 17, 2004 11:24 am

Co:Z SFTP

Post by jupam21 »

Is there a way to append to a file with Co:Z SFTP
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

The SSH sftp protocol doesn't allow appending, so there is unfortunately no way to append to a posix file. I supposed that we could allow that with a setting extension, but it is not currently implemented.

It is possible however if you are using the Co:Z SFTP server on z/OS to append to a MVS dataset:

(from a linux client running OpenSSH):

sftp myid@zos.com
sftp>
sftp>ls /+mode=text
sftp>cd //MYHLQ
sftp>put test.txt
Uploading test.txt to //MYHLQ/test.txt <<-- dataset MYHLQ.TT.TXT
sftp>ls /+disp=mod
sftp>put test2.txt test.txt
Uploading test2.txt to //MYHLQ/test.txt <<-- writing with disp=mod
sftp>ls /+nodisp <<-- set DISP back to default
Post Reply