I'm new to Co:Z SFTP and work on a mainframe to send/retrieve files and I would like to have messages displayed for Server Name, Directory Path, File Name, etc.. Similar to what we currently receive for FTP Messages. We have a number of programs that are coded to look for specific message codes and parse accordingly. I don't know if there is a way to turn the feature on. I've noticed several others post referencing EDC messages, which we can modify our code to the new messages. Is there a way to turn this feature on from within a specific job or is this a system configurable feature. If it can be turned on within a job, can you provide me with the command(s) I need to use within my parameter file. A sample of a parameter is below:
remoteuser="<userid>f"
remotefile="filename.txt"
remotedir="/shared/etl_apps/TPMS/FM_HOME/outbound/str_prov_nbr"
localfile="//DD:UPLOAD"
server="<servername>"
servercp="ISO8859-1"
export PASSWD_DSN='SYS3.OMVS.SFTP.PARMS('$remoteuser')'
export SSH_ASKPASS=read_passwd_dsn.sh
export DISPLAY=none
ssh_opts="-oBatchMode=no" # allows ssh to use SSH_ASKPASS program
ssh_opts="$ssh_opts -oConnectTimeout=60"
ssh_opts="$ssh_opts -oServerAliveInterval=60"
ssh_opts="$ssh_opts -oStrictHostKeyChecking=no" # accept initial host
cozsftp $ssh_opts -b- $remoteuser@$server <<EOB
lzopts mode=text,NOtrim,servercp=$servercp
cd $remotedir
dir
ls -l
get $remotefile $localfile
EOB