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

MGET from the FTP server

I have to start retrieving multiple files from my EDI server and put them on the iSeries. I'm new to FTP and I'm really struggling with the MGET function. If I want to retrieve all files received on my server I enter, "MGET inbox08925485US00". This will retrieve my multiple files, but no matter what I put for location -- to put the files it creates in a file in QGPL -- it issues a replace message. If I want to put these multiple files in a library called Eddie -- with each file having it's own unique name -- what would the destination parm be?

You didn't mention the method you're using for the FTP process (from a CLP, interactive, etc.).


* It's easy to set the destination library to be different then QGPL'. For example, lcd mylib will direct the files to mylib.

* If the file names are short enough, the iSeries FTP client will behave the way you want (i.e. new file for every remote file), however, for longer then 10 character file names, this may be an issue.

* The easiest way to work around this naming restriction is to direct the FTP incoming files to the directory on the IFS. For example:

lcd /tmp
mget longnamesintheremote server*


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

The Best Web Links: Tips, tutorials and more.

Check out this Search400.com Featured Topic: Networking and the iSeries

PC/Windows connectivity expert Shahar Mor is available to answer your toughest networking questions. Ask Shahar a question or read his previously answered questions here.

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.