Using 8.5.4.
I have to set up a job to download files from a partner's MVS or z/OS FTP server. As you know, that flavor of server handles "directories" differently from other servers. I have set up an FTP task with a Download command with the following (obfuscated) parameters:
- Folder: 'PREFIX.TREATED.LIKE.DIRECTORY'
Include file mask: FILENAME.*
I am unable to download a file that I know is there (verified with a FileZilla session). It appears to me that the problem is that the prefix (with quotes) is being pre-pended to the file name in the RETR command. I suspect that if it were possible to make the RETR command use the file name only, it would work. Here is the logged output of the session:
220-FTPD1 IBM FTP CS V2R3 at external.ftp.server.tld, 11:40:13 on 2019-09-10.
220 Connection will close if idle for more than 10 minutes.
USER USERNAME
331 Send password please.
PASS ********
230 USERNAME is logged on. Working directory is "USERNAME.".
PBSZ 0
200 Protection buffer size accepted
PROT P
200 Data connection protection set to private
FEAT
211- Extensions supported
AUTH TLS
PBSZ
PROT
211 End
PBSZ 0
200 Protection buffer size accepted
PROT P
200 Data connection protection set to private
SYST
215 MVS is the operating system of this server. FTP Server is running on z/OS.
PWD
257 "'USERNAME.'" is working directory.
PWD
257 "'USERNAME.'" is working directory.
PWD
257 "'USERNAME.'" is working directory.
CWD 'PREFIX.TREATED.LIKE.DIRECTORY'
250 "PREFIX.TREATED.LIKE.DIRECTORY." is the working directory name prefix.
PWD
257 "'PREFIX.TREATED.LIKE.DIRECTORY.'" is working directory.
TYPE A
200 Representation type is Ascii NonPrint
PASV
227 Entering Passive Mode (111,111,111,111,195,81)
LIST
125 List started OK
250 List completed successfully.
TYPE I
200 Representation type is Image
PASV
227 Entering Passive Mode (111,111,111,111,195,164)
RETR 'PREFIX.TREATED.LIKE.DIRECTORY.'FILENAME.G0001V00
550 Mismatched quotes on pathname 'PREFIX.TREATED.LIKE.DIRECTORY.'FILENAME.G0001V00
QUIT
221 Quit command received. Goodbye.
I've tried tweaking a couple of different settings in the download setup, but nothing has made it work. Am I missing something?