Question about Windows files

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
PaulB42
Posts: 27
Joined: Fri Aug 21, 2009 5:32 am

Question about Windows files

Post by PaulB42 »

Hello
We use SFTP to PUT files from z/OS to a customer's Windows system.
Unfortunately they have an application that detects files arriving in the transfer directory and routes them somewhere else.
On occasions this results in the files being transferred incomplete as SFTP hasn't finished transferring to them.
I've suggested PUTting to a different file name and then doing a RENAME but apparently that isn't any good as it just detects any file arriving, not with a particular name.

I don't think there is any way round this - other than the customer changing their process, but thought someone might have experienced the same problem.
Thanks
PaulB42
Posts: 27
Joined: Fri Aug 21, 2009 5:32 am

Re: Question about Windows files

Post by PaulB42 »

Further to this, a Windows colleague has suggested this might be down to an option called 'transfer resume'.
He says:
There is a setting in SFTP Client software (usually called something like “transfer resume” ). If this is set to enabled then if the transfer fails for any reason, the Client can try again and the transfer will resume from where it left off before the error. Unfortunately at any point in time any part of the file that has been transferred looks like a complete file to the receiving system.
If this option is disabled then if a transfer fails the sending system must send the whole file again. However, the file is not visible to the receiving system until it is complete.

Is there such an option in Co:Z SFTP and is it enable or disabled?
Thanks
dovetail
Site Admin
Posts: 2025
Joined: Thu Jul 29, 2004 12:12 pm

Re: Question about Windows files

Post by dovetail »

If you have a SFTP client that has a "resume" option, then it will work with CO:Z SFTP server for uploading z/OS Unix files as long as you are only doing (at most) single-byte translations without changing line terminators.
What happens is that the client resumes by "stat"ing the existing file to get its size and then uploads the rest. Co:Z SFTP server doesn't support this for z/OS Data sets.

The Co:Z SFTP client doesn't currently have a "put with resume" option.

SFTP resume doesn't deal at all with how to "hide" a file that is being uploaded. The general approach to this is to upload it in a temporary name and then rename it after it is completely uploaded to the real name.
Post Reply