Skip to Content
0

PI: Error in receiving files via SFTP from MVS

Nov 07, 2016 at 06:15 PM

265

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Lars Richter Nov 16, 2016 at 08:56 AM
0

Dear all,

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

Many thanks in advance,

Lars

Share
10 |10000 characters needed characters left characters exceeded
Evgeniy Kolmakov Nov 16, 2016 at 09:02 AM
0

Hi Lars!

Is SFTP server running on your mainframe?

Regards, Evgeniy.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Evgeniy,

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

Thanks, Lars

0
Raghuraman S Nov 16, 2016 at 09:11 AM
0

Hello,

Directory should be like \\directory\path

To pick all files give just *

Show 6 Share
10 |10000 characters needed characters left characters exceeded

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?

0

Hello ,

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

0

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

0

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

0

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

0
0