PutFiles (SFTP) to mainframe dataset

Advertisement

mvannie9
Joined:
Posts:
1
Location:
South Africa

PutFiles (SFTP) to mainframe dataset

Good day.

I am able to put a file on a mainframe with the interface.
The output is a dataset.

Generated code is this:
using (Session session = new Session())
{
    session.Open(sessionOptions);
    session.PutFiles(@"C:\temp\New Text Document.txt", "/FTADV:P=WIN,lrecl=160,recfm=fb/*").Check();
}
This is the remote location I put in to put the file:
/FTADV:P=WIN,lrecl=160,recfm=fb/___SS.APP.TEST.SOLMIS.CIF856
(As per the attachment.)

It works 100% with the GUI.
When trying the API, it puts the dataset on the default folder when using the API and not the actual dataset.
(Hope this makes sense.)

If someone can push me in the correct direction to configure the API to upload the local (Windows) file as a dataset on a mainframe?

Thank you
Mike

Description: Where it actually puts the file. Default login location, which is wrong

winscp-dataset-3.png

Description: Where it is suppose to be

winscp-dataset-2.png

Description: When uploading a file and specifying the correct parameters and dataset.

winscp-dataset-1.png

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum