Working with FTP extensions
I'm trying to FTP files to an iSeries from my PC. I'm using the FTP the file goes across, but it takes the extension of the PC file as a member name. I want these to go across as a separate file with extension. Can you advise me?

    Requires Free Membership to View

    Register today to access targeted resources from our editorial writers and independent industry experts including news, tips, and advice to help you do your job more efficiently and effectively. Stay informed on the hottest topics and biggest challenges faced by IT professionals working with iSeries products and services.

    By submitting your registration information to Search400.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of Search400.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

The iSeries FTP server indeed uses the extension as the member name. There are two things that can be done regarding this issue:

1. You may want to put the file in the IFS -- it will keep the PC name.

For example:
cd /tmp
put autoexec.bat

2. You can specify an exact required member name, for example:

Put autoexec.bat myfile.mymbr.

Note: If the above is not good enough, you may invoke copy file after the "put", such as:

put autoexec.bat xx
quote rcmd cpyf fromfile(xx) tofile(myfile.ext)

==================================
MORE INFORMATION ON THIS TOPIC
==================================

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.

This was first published in April 2003