Retrieve file from customer’s server to our AS400 via FTP

0 pts.
Tags:
Application development
AS/400
We have a customer that is placing a file on their FTP server for daily pickup. This file will have a varying name from day to day as the filename contains the date to make it unique. There is the potential that a day could be missed and we would need to retrieve multiple files during the same attempt. Whether one or more files are retrieved, we would like them to be placed into a single generically named file in a directory in the IFS. We will be initiating the FTP session from our AS400, logging into the customer's FTP server, obtaining the file(s) [all of which have the same file extension type-can we use a wildcard], and placing the file(s) into a single file in the IFS. We have attempted to use MGET and MPUT but fear we may not have changed directories appropriately to direct our files to the proper destination. Any help would be greatly appreciated.
ASKED: December 28, 2005  4:43 PM
UPDATED: January 5, 2006  6:58 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

If you’re looking for a third party product to help with this, our Transfer Anywhere product can do this for you using the wildcard option. Transfer Anywhere also has compression and encryption included, automates the process and has complete logging of all transfers. More information on Transfer Anywhere is available on our website: www.linomasoftware.com.

Thanks

Brian Pick
Linoma Software

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Youngrpgnerd
    We do something similar at our company. You would want to use the LCD command within your FTP script to set your "Local Current Directory" so that the "MGET (REPLACE" command will work as you desire.
    0 pointsBadges:
    report
  • MilesButler
    Have you tried using the Unix shell functionality QSH STRQSH I use this functionality on a number of programs that extract files of indeterminate name in the IFS environment and use CPYFRMSTMF to pass the retrieved data back to the iSeries. Miles
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following