This project is read-only.

SFTP files to mainframe

Jul 17, 2012 at 6:47 PM

I am trying to secure FTP file to mainframe z/OS. First I need to send some commands to the mainframe. Then I need to FTP the file.  I am trying to figure out if I can do both in one transaction i.e. first commands with SSHClient and then second FTP file with SftpClient.

So I want to use SshClient to send the following commands first:

ls /+mode=text
ls /+writer=INTRDR

Then I want to actually FTP the file using SftpClient.UploadFile()

Is this possible or do I need another approach?



Jul 21, 2012 at 1:19 AM



In theory its possible, I mean protocol supports it but unfortunalty I separated those 2 functions into two different classes so out of box library does not support it.


If you use source code, you could modify code so it will allow you to do all those operations using one transaction by inherting SftpClient from SshClient or vise versa.

Hope it helps,