How do I force a cc=4 if the sftp_put.sh script does not successfully move the file from mainframe to server.
Here is a sample of what I'm feeding COZBATCH thru DD SFTPIN:
user=admin
pwdsn="lev.parm(pswd)"
host=hostcomputer
lzopts="mode=text,linerule=crlf,notrim"
lfile=//DD:DD2SFTP
rfile=&FILE..&GDGVER.
. $script_dir/sftp_put.sh
user=admin
pwdsn="lev.parm(pswd)"
host=hostcomputer
lzopts="mode=text,linerule=crlf,notrim"
lfile=//DD:FTPDONE
rfile=&FILE..&GDGVER..FTPDONE
. $script_dir/sftp_put.sh
thanks
Mike
forcing a cc=4 after sftp_put.sh error
Re: forcing a cc=4 after sftp_put.sh error
You can you own shell commands/script to the end, like:
rc=$?
test $rc -ne 0 && exit 4
exit 0
rc=$?
test $rc -ne 0 && exit 4
exit 0