cancel
Showing results for 
Search instead for 
Did you mean: 

PI: Error in receiving files via SFTP from MVS

lrichter_eprox
Explorer
0 Kudos

Dear Experts

I have a SFTP scenario where I want to pick up a couple of files from a MVS mainframe. Could you please help with the correct syntax for parameters file name and file path?

So far I am using

File name: //.*

File path: //ABCD.DEFG.VWXYZ

Also played with the usePathForLs - option in advanced mode. The listing command seems to be good, but change directory (cd) then is not working, comment with "Maybe the directory does not exist. Error message is: no such file". Connecting from OS level of SAP PI does work and we are able to download files.

Much appreciated if you could let me know how to set exactly file name and file path for my scenario.

Thanks,

Lars

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member186851
Active Contributor
0 Kudos

Hello,

Directory should be like \\directory\path

To pick all files give just *

lrichter_eprox
Explorer
0 Kudos

Hi

backslashes instead of forward slashes are not working with this. Error still remains:

Exception received: 2: cd to \\ABCD.DEFG.VWXYZ/ failed. Maybe the directory does not exist. Error message is: No such file

Any other idea?

former_member186851
Active Contributor
0 Kudos

Hello ,

check whether that directory exists first, And remove / at the last.

lrichter_eprox
Explorer
0 Kudos

Hello

yes, the directory exists. We can successfully connect from OS level using sftp commands. But it seems SAP PI needs to have a certain string as a file path parameter that I am looking for.

Thanks

former_member186851
Active Contributor
0 Kudos

Check the connection parameters maintained and can you post the recent path used in the channel.

lrichter_eprox
Explorer
0 Kudos

Hi

the connection parameters are correct. The log shows that a listing (ls) will find 62 files there, which means that connection was established before.

Listing //ABCD.DEFG.VWXYZ/
Directory under file Path 63 returned {1}. These include directories and links.
Found 62 file s
Exception received: 2: cd to //ABCD.DEFG.VWXYZ failed. Maybe the directory does not exist. Error message is: No such file

also, SP03, Patch level 9 is implemented, So attribute usePathForLs is available.

Did you successfully manage a download from a MVS, using data sets? and if yes, could you please let me know how you did configure file path and file name parameter?

thanks a lot

former_member190293
Active Contributor
0 Kudos

Hi Lars!

Is SFTP server running on your mainframe?

Regards, Evgeniy.

lrichter_eprox
Explorer
0 Kudos

Hi Evgeniy,

no, the mainframe is running outside, provided by a vendor.

Thanks, Lars

lrichter_eprox
Explorer
0 Kudos

Dear all,

is there no one who can help me with this, please?

Many thanks in advance,

Lars