Exit question

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
Shady
Posts: 37
Joined: Wed Feb 24, 2010 10:50 pm

Exit question

Post by Shady »

Hi,...
when I upload a file with WinSCP using Co:Z SFTP Server the CZCHKCMD Exit takes effect:
ZosExitInterface: CZCHKCMD exit rc=8 for SITE SFTP-ACMODTIME /u/as433/SFTP/CP
Which site command have to be allowed that the error wouldn't stay represent...? I suppose there is a abbreviation for "acmodtime", isn't it`?

Greets
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

There is a wire protocol command in the standard SFTP spec "SSH2_FXP_SETSTAT", which has an option for setting a HFS/zFS file's last-accessed and last-modified times.

Some clients will use this command after a "put" to set the uploaded files times to the local file's times.

There is not an equivalent IBM FTP command for doing this, which is why the CHCMD exit uses the command "SFTP-xxxxx". If you have IBM FTP exits, you will need to either ignore the handful of "SFTP-xxxxx" commands (RC=0), or add code to handle them.

BTW: These should all be documented in the Co:Z SFTP exits guide, but I notice that we have omitted the SFTP-ACMODTIME command from our exits documentation - we will fix that. Thanks for reporting this.
Shady
Posts: 37
Joined: Wed Feb 24, 2010 10:50 pm

Post by Shady »

Thanks for your answer.
Looking forward to the update of the exit guide.
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

The Co:Z SFTP exits guide has been updated and is available on this page:

http://dovetail.com/products/sftp.html
Shady
Posts: 37
Joined: Wed Feb 24, 2010 10:50 pm

Post by Shady »

I already recognized this.
THX for that!
Post Reply