Problem solve Get help with specific problems with your technologies, process and projects.

FTP an iSeries physical file to a mainframe

You Can View User Feedback To This Q&A

We are trying to FTP an iSeries physical file to a mainframe. The mainframe file name they want us to send to is upload(+1). The iSeries FTP doesn't like the (+1) string. Is there a way to envelope these characters within the iSeries FTP environment? We have tried putting " " & ' ' around the mainframe file name to no success.

You are correct that the iSeries won't accept that as a file name. Fortunately, FTP gives us a way to handle this sort of problem. The easiest way to do this is on the FTP command itself. If you leave a space after the file name, that name following the blank space will be the name that it will transfer the file to your target machine. In this example, you can leave your iSeries file name as is, but change the name as part of the FTP transfer.


put mylib/myfile +1

If you're having trouble with an FTP command, just type in HELP at the ftp command prompt.


  • I have to send (via FTP) files to a mainframe (MVS) all the time and I have to enclose their file name in triple quotes.

    For example:

    put mylib/myfile '''upload(+1)'''

    I think the triple quotes may be the key the person asking the question was looking for.

    & ; Mike Shumaker


The Best Web Links: tips, tutorials and more.

Ask your systems management questions--or help out your peers by answering them--in our live discussion forums.

This was last published in October 2002

Dig Deeper on FTP

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.