The client is invoked as follows:
Code: Select all
sftpc -profile=TSGSFTP.tlp -cmdfile=TSGSFTP_parms.dat
Code: Select all
lcd \Interfaces\AbbeyLife\LandingZone
cd //TSGSFTP
ls /+mode=text,lrecl=80,recfm=fb
put hello.txt //TSGSFTP.SFTP.CNTL.HELLO2 -fg -o
Code: Select all
sftp> lcd lcd \Interfaces\AbbeyLife\LandingZone
Local working directory: E:\Interfaces\AbbeyLife\LandingZone
sftp> cd //TSGSFTP
Remote working directory: //TSGSFTP
sftp> ls
listing remote directory /
sftp> ls /+mode=text,lrecl=80,recfm=fb
listing remote directory /+mode=text,lrecl=80,recfm=fb
<<snip>>
sftp> put hello.txt //TSGSFTP.SFTP.CNTL.HELLO2 -fg -o
local: E:\Interfaces\AbbeyLife\LandingZone
remote: /TSGSFTP.SFTP.CNTL.HELLO2
ERROR: Opening remote file failed: No such file. No such file.
Code: Select all
Ý12.401¨ session opened for local user TSGSFTP from Ý10.xx.xxx.xxx¨
Ý12.798¨ received client version 4
Ý12.808¨ debug3: request 0: realpath
Ý12.809¨ realpath "."
Ý12.811¨ debug1: request 0: sent names count 1
Ý12.817¨ debug3: request 1: realpath
Ý12.817¨ realpath "//TSGSFTP"
Ý12.856¨ debug1: request 1: sent names count 1
Ý12.861¨ debug3: request 2: opendir
Ý12.861¨ opendir "//TSGSFTP"
ZosDirÝT¨: -> open(TSGSFTP)
ZosDirÝT¨: <- open(true)
Ý12.970¨ debug1: request 2: sent handle handle 0
Ý12.976¨ debug3: request 3: close handle 0
Ý12.976¨ closedir "//TSGSFTP"
Ý12.976¨ debug3: request 3: sent status 0
Ý12.976¨ sent status Success
Ý12.977¨ debug3: request 4: opendir
Ý12.978¨ opendir "/TSGSFTP"
Ý12.979¨ debug3: request 4: sent status 2
Ý12.979¨ sent status No such file
Ý12.983¨ debug3: request 5: opendir
Ý12.984¨ opendir "/"
Ý13.921¨ opendir "/+mode=text,lrecl=80,recfm=fb"
Ý13.943¨ opendir "/TSGSFTP/TSGSFTP.SFTP.CNTL.HELLO2"
What are we doing wrong here?