Working with the GET command

Working with the GET command

Can you use the GET command to retrieve a remote file weekly when the file name is different each week? I have a CL program where I retrieve a file weekly to my iSeries. It works fine but I have to specify the remote file name each week, as it changes weekly. I have been trying to use wild cards for the name of the remote file and place it in the same file on the 400. GET RRS02*.txt rcwtest/update (replace.

    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.

I assume you use FTP so the following is legal:

mget RRS02*.txt rcwtest/update (replace will get all files starting with RRS02 to different members in file update on the iSeries.

==================================
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 November 2002