cancel
Showing results for 
Search instead for 
Did you mean: 

Error sending file to mainframe with FTP

jakob_steen-petersen
Active Participant
0 Kudos

Hi,

I try to send data to a mainframe using FTP. I can do it allright using Windows FTP directly on the server, but when i send trough the File adpater i get this error:

"MP: exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Invalid data set name "A116TEST.SC8050.NO00001". Use MVS Dsname conventions.: com.sap.aii.adapter.file.ftp.FTPEx: 501 Invalid data set name "A116TEST.SC8050.NO00001". Use MVS Dsname conventions."

But the filename is allright - thats why i can send i manually! What could be wrong?

/Jakob

Accepted Solutions (1)

Accepted Solutions (1)

jakob_steen-petersen
Active Participant
0 Kudos

Yes you are right - and thats why i cannot understand what is wrong in my case? As you can se in my post the filename is:

A116TEST.SC8050.NO00001

?????

/Jakob

prateek
Active Contributor
0 Kudos

In my opinion, you need a double quote followed by a single quote, followed by the path,

then single then double.

"'A.B.C.D'" <-- NOTE THE DOUBLE QUOTE AND THEN THE SINGLE QUOTE

If that doent work, try 3 quotes (''').

<i>[Reward if useful]

</i>

Regards,

Prateek

Answers (2)

Answers (2)

Former Member
0 Kudos

You where right! The problem was the quotes:

I needed to apply quotes to the file definition in the adapter:

Target directory: DABETT.A0313806

File Name Scheme: 'DABETT.A0313806.A116TEST.SC8050.NO00001'

Thank you for the tip!

/Jakob

prateek
Active Contributor
0 Kudos

Hi Jacob,

Data set names for MVS systems have to follow a few rules.

1. Each segment cannot exceed 8 characters

2. No segment can contain an invalid character

3. A segment cannot start with a number or end with a period.

Example valid name: HR.PAYROLL.APR20.Y2006

Also check out this

http://www.ghisler.ch/wiki/index.php/Compare_by_content

<i>[Reward points if helpful]</i>

Regards,

Prateek