Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.7k views
in .NET FTP by (120 points)
Hi--

I'm writing a small .NET app that uses FTP to pull files off a mainframe running z/OS. Generally I have been able to do this with edtftp.net-- I can change directories, get and put files, and even get directory listings with Dir(). However, once I try to get more detailed information about particular files, for example using Size() or ModTime(), I get exceptions. For example, ModTime() throws an exception with the following message:

"command aborted -- FTP server not configured for MDTM"

If I try to run DirDetails(), I get:

"Unknown SYST: MVS is the operating system of this server. FTP Server is running on z/OS."

So is edtftp.net just not compatible with z/OS right now? Or could it be something I'm doing wrong? If it's the latter I'll keep working at it; if it's the former, well, I don't want to keep trying if there's no chance of success. Any ideas or suggestions?

1 Answer

0 votes
by (161k points)
ModTime() won't work with this server - it's an optional FTP command that not all servers implement.

z/OS should work, however you will need to set the parser manually. Search for FTPFileFactory in this newsgroup for an example. Try setting it to the Unix parser.

Hi--

I'm writing a small .NET app that uses FTP to pull files off a mainframe running z/OS. Generally I have been able to do this with edtftp.net-- I can change directories, get and put files, and even get directory listings with Dir(). However, once I try to get more detailed information about particular files, for example using Size() or ModTime(), I get exceptions. For example, ModTime() throws an exception with the following message:

"command aborted -- FTP server not configured for MDTM"

If I try to run DirDetails(), I get:

"Unknown SYST: MVS is the operating system of this server. FTP Server is running on z/OS."

So is edtftp.net just not compatible with z/OS right now? Or could it be something I'm doing wrong? If it's the latter I'll keep working at it; if it's the former, well, I don't want to keep trying if there's no chance of success. Any ideas or suggestions?

Categories

...