FSUM7351 not found

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
Damian
Posts: 3
Joined: Tue Feb 15, 2011 1:28 pm

FSUM7351 not found

Post by Damian »

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,
dovetail
Site Admin
Posts: 2025
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

put this line at the beginning of your //STDIN DD :

set -x

(in lower case)

And then post your job output so that we can see what you are doing. Perhaps you are using UPPER CASE for your input to the shell?
Damian
Posts: 3
Joined: Tue Feb 15, 2011 1:28 pm

Post by Damian »

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
dovetail
Site Admin
Posts: 2025
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

Try replacing this line:

set -x //STDIN DD *

with:

//STDIN DD *
set -x
Damian
Posts: 3
Joined: Tue Feb 15, 2011 1:28 pm

Return code 127

Post by Damian »

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
dovetail
Site Admin
Posts: 2025
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

COZBATCH is running the z/OS Unix shell.
This message is from the shell.
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.
The obvious cause would be that there is not directory+file named:

/SHARE/tGRP/nonsp/dovetail/bin/cozsftp

But, I would assume that you have checked that. Remember that Unix path names are case sensitive
Post Reply