Page 1 of 1

FTP: Cannot Connect to MVS Mainframe

Posted: 05.03.2008, 18:55
by DG
I have no problem connecting with servers, but cannot establish an FTP connection with an MVS mainframe. I have tried various combinations of DNS and IP address, all to no avail.

I am able to connect to our mainframe with other FTP software.

Regards,
DG

Posted: 07.03.2008, 23:43
by Marek
Have you public access to such server?

Posted: 08.03.2008, 04:22
by DG
Our corporate mainframe is secured by a firewall, so there is no public access. I can FTP to it with FileZilla, Rumba and PSPad. I have compared settings in those packages with those in FreeCommander and cannot detect why they work and FC doesn't.

Posted: 03.04.2008, 18:44
by DG
Marek,

I think I have found the problem. FC connects successfully to the mainframe, but fails listing the specified directory. This is the message:

LIST /'t838.p98108.noacf2'
DirectoryListing: (550) 550 command LIST fails: access to resource is denied by server. - /'t838.p98108.noacf2'

The problem is the '/' before the dataset name. The command should be
LIST 't838.p98108.noacf2'

I cannot find a way to prevent FC from inserting the slash.

Thanks,
DG

Posted: 03.04.2008, 22:41
by Marek
Can you please check if the following command works:

CWD /t838.p98108.noacf2

Posted: 04.04.2008, 19:54
by DG
Marek,

The command format you suggest does not work.

When I first log in, I get this:
Response: 125 List started OK
Response: 250 List completed successfully.
Status: Directory listing successful

I tried the command you recommended and get this:
Command: CWD /t838.p98108.noacf2
Response: 550 command CWD fails: access to resource is denied by server.

When I try it without the dataset name in quotes, I get the wrong listing:
Command: CWD t838.p98108.noacf2
Response: 250 "MM49841.T838.P98108.NOACF2." is the working directory name prefix.

CWD with quotes works successfully.
Command: CWD 't838.p98108.noacf2'
Response: 250 The working directory "T838.P98108.NOACF2" is a partitioned data set

I tried LIST vs. CWD with these results:
Command: cwd 't838.p98108.dwgjcl'
Response: 250 The working directory "T838.P98108.DWGJCL" is a partitioned data set
Command: list 't838.p98108.dwgjcl'
Error: Connection timed out


The solution seems to be CWD 'dataset name'

Thanks,
DG

Posted: 29.04.2008, 01:27
by DG
Marek,

I notice you've made chanages in the FTP connection for an MVS mainframe. I continue to get messages about "access to resource denied" however and it seems to be the syntax for the CWD command. FC still puts a "/" in front of the dataset name. I will send you a personal message with the FC ftp log along with the corresponding log from FileZilla.

Regards,
DG

Posted: 03.05.2008, 21:45
by Marek
Please check the beta 337.

Posted: 06.05.2008, 17:19
by DG
Marek,

Sad to say, the messages look a bit different but access is still denied. I'll send you another pm with the latest from beta 337.

Regards,
DG