Community forum

Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
View
Go to last post Go to first unread
Offline MRomer  
#1 Posted : Tuesday, September 10, 2019 7:04:45 PM(UTC)
MRomer

Rank: Paid support

Joined: 11/27/2012(UTC)
Posts: 51
United States
Location: Memphis, TN

Thanks: 8 times
Was thanked: 8 time(s) in 8 post(s)
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:
Code:
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?
Offline Support  
#2 Posted : Wednesday, September 11, 2019 4:43:00 PM(UTC)
Support

Rank: Official support

Joined: 12/1/2015(UTC)
Posts: 151

Thanks: 16 times
Was thanked: 6 time(s) in 5 post(s)
Originally Posted by: MRomer Go to Quoted Post
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:
Code:
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?


Are you able to provide us with a test account, so we can try from our end? If you would email us a test account to support@visualcron.com
Michael
Support
http://www.visualcron.com

Please like VisualCron on facebook!
Offline MRomer  
#3 Posted : Wednesday, September 11, 2019 4:59:19 PM(UTC)
MRomer

Rank: Paid support

Joined: 11/27/2012(UTC)
Posts: 51
United States
Location: Memphis, TN

Thanks: 8 times
Was thanked: 8 time(s) in 8 post(s)
Originally Posted by: Support Go to Quoted Post
Are you able to provide us with a test account, so we can try from our end? If you would email us a test account to support@visualcron.com

I wish I could. It's not my server, and they're difficult to get responses from. I'll see if they've got a test account I can pass on to you.
thanks 1 user thanked MRomer for this useful post.
Support on 9/19/2019(UTC)
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Scroll to Top