I am just starting to replace normal ftp with cozsftp. I have it working in several jobs and like it.
My question is exactly how to get the RENAME function working. Current ftp commands submitted in batch job look like...
Code: Select all
LOCSITE TRAIL
CD holdbox/batch/inbound
PUT 'mainframe.fileabc' fileabc.tmp
REN fileabc.tmp filedef.txt
I'm using cozsftp in batch like below...
Code: Select all
//SFTPIN DD *
pwdsn='*****'
user=********
host=************
lzopts="mode=text"
lfile=//DD:MYDD
rfile=/holdbox/batch/inbound/fileabc.tmp
sftp_opts="$sftp_opts -oPubkeyAuthentication=no"
. $script_dir/sftp_put.sh
//MYDD DD DSN=MAINFRAME.FILEABC,DISP=SHR
One other question....exactly how do I continue the rfile to a second line if needed?
Thanks.