I am using COZBATCH and trying to ftp a file and I am getting the following message:
CoZBatchÝN¨: version 1.6.0 2010-03-30
CoZBatchÝI¨: executing default progname="-/bin/sh"
/COZSFTP: FSUM7351 not found
: FSUM7351 not found
Where does this file need to be? Could you please be specific.
Thanks,
FSUM7351 not found
Here is my jcl:
//Xx12345 JOB 'aaa_bbb',
// CLASS=A,
// MSGCLASS=X,
// MSGLEVEL=(1,1)
//*
//JOBLIB DD DISP=SHR,DSN=SYS1.COZ.LOADLIB
//*
//SFTP1 EXEC PGM=COZBATCH
set -x //STDIN DD *
coz_bin="/SHARE/tGRP/nonsp/dovetail/bin"
remoteuser="cdfgrtfgh.AAA.Usage"
server="xx.xx.xxx.xx"
export PASSWD_DSN='XX12.PROGRA16.CNTL(FTPPASS1)'
export SSH_ASKPASS=$coz_bin/read_passwd_dsn.sh
export DISPLAY=none
ssh_opts="-oBatchMode=no"
ssh_opts="$ssh_opts -oConnectTimeout=60"
ssh_opts="$ssh_opts -oServerAliveInterval=60"
ssh_opts="$ssh_opts -oStrictHostKeyChecking=no"
$coz_bin/cozsftp $ssh_opts -b- $remoteuser@$server <<EOB
lzopts servercp=ISO8859-1,clientcp=IBM-1047,mode=text
ls
put //XX12.DAMIAN1.TEST1 BBBB.DAMIAN.TESTFILE.FORCHRIS
EOB
I am getting a return code 0...but I don't see anything else in the log. How can I see if I have send the file?
CoZBatchÝN¨: Copyright (C) 2005-2009 Dovetailed Technologies LLC. All rights res
CoZBatchÝN¨: version 1.6.0 2010-03-30
CoZBatchÝI¨: returning rc=exitcode=0
//Xx12345 JOB 'aaa_bbb',
// CLASS=A,
// MSGCLASS=X,
// MSGLEVEL=(1,1)
//*
//JOBLIB DD DISP=SHR,DSN=SYS1.COZ.LOADLIB
//*
//SFTP1 EXEC PGM=COZBATCH
set -x //STDIN DD *
coz_bin="/SHARE/tGRP/nonsp/dovetail/bin"
remoteuser="cdfgrtfgh.AAA.Usage"
server="xx.xx.xxx.xx"
export PASSWD_DSN='XX12.PROGRA16.CNTL(FTPPASS1)'
export SSH_ASKPASS=$coz_bin/read_passwd_dsn.sh
export DISPLAY=none
ssh_opts="-oBatchMode=no"
ssh_opts="$ssh_opts -oConnectTimeout=60"
ssh_opts="$ssh_opts -oServerAliveInterval=60"
ssh_opts="$ssh_opts -oStrictHostKeyChecking=no"
$coz_bin/cozsftp $ssh_opts -b- $remoteuser@$server <<EOB
lzopts servercp=ISO8859-1,clientcp=IBM-1047,mode=text
ls
put //XX12.DAMIAN1.TEST1 BBBB.DAMIAN.TESTFILE.FORCHRIS
EOB
I am getting a return code 0...but I don't see anything else in the log. How can I see if I have send the file?
CoZBatchÝN¨: Copyright (C) 2005-2009 Dovetailed Technologies LLC. All rights res
CoZBatchÝN¨: version 1.6.0 2010-03-30
CoZBatchÝI¨: returning rc=exitcode=0
Return code 127
After that change ..I am getting a return code= 127
/SHARE/tGRP/nonsp/dovetail/bin/cozsftp: FSUM7351 not found
CoZBatchÝI¨: returning rc=exitcode=127
/SHARE/tGRP/nonsp/dovetail/bin/cozsftp: FSUM7351 not found
CoZBatchÝI¨: returning rc=exitcode=127
COZBATCH is running the z/OS Unix shell.
This message is from the shell.
/SHARE/tGRP/nonsp/dovetail/bin/cozsftp
But, I would assume that you have checked that. Remember that Unix path names are case sensitive
This message is from the shell.
The obvious cause would be that there is not directory+file named:FSUM7351 not found
Explanation: You attempted to execute a command that could not be found.
User Response: Ensure that the command exists and that the PATH environment variable is valid.
/SHARE/tGRP/nonsp/dovetail/bin/cozsftp
But, I would assume that you have checked that. Remember that Unix path names are case sensitive