SFTP return codes

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
dabills
Posts: 41
Joined: Thu May 19, 2011 9:56 am

SFTP return codes

Post by dabills »

Is there a way to override or some other way to use different return codes for the SFTP process? Specifically, RC=1 is causing us an issue because that is setup as a valid return code in some of our scheduled jobs.
dovetail
Site Admin
Posts: 2025
Joined: Thu Jul 29, 2004 12:12 pm

Re: SFTP return codes

Post by dovetail »

See this: http://dovetail.com/forum/viewtopic.php?f=6&t=1250

If you are using the sample batch PROC (SFTPPROC) and sample batch scripts, which I recommend, you can customize the sample sftp_connect.sh script by adding lines like the above example to the end, and changing any other "exits" to set your chosen return codes.
dabills
Posts: 41
Joined: Thu May 19, 2011 9:56 am

Re: SFTP return codes

Post by dabills »

Thanks. Most of our stuff was modeled after the RUNSFTP sample, but I was able to add the script code after the EOB in the JCL and it worked fine.
Post Reply