Co:Z SFTP
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
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