View Full Version : Receiving a "wildcard" file via FTP on iSeries
01-02-2003, 09:10 AM
Here is how I handle this: 1) FTP to site 2) LS *.* (disk where *.* is my wildcard 3) Read through the output file default is LSOUTPUT, but I override to my own file 4) Build ftp instructions based on #3 5) FTP to site and execute instructions built in #4 All of this occurs in batch and no user intervention is required. For the heck of it, I experimented with MGET *.* and did not have a lot of luck. I tried writing to a library as well as the IFS. I suspect that the file names may have been too long. Good Luck! Joe
01-03-2003, 01:04 PM
Joe, Great, I'll give it a try! Thanks for your help! Mike
01-06-2003, 06:47 PM
Joe, I'm having a little trouble formatting the ftp instructions. Would it be possible for you to either point me to a sample program or perhaps provide a sample of your process for building the FTP instructions? If you have the time I would appreciate it!
01-07-2003, 04:44 AM
Maybe this will help you out - Joe Hertvik "Five Steps to Running Batch FTP from Your AS/400" 3/1/01 12:01am (/firstname.lastname@example.orgVMfHb6dae.1@.218b7397&phpMyAdmin=MzvdqLOMiN7HL4yz2OU82BJvkG9) I found this by searching the forum for FTP & OVRDBF. Joe
01-09-2003, 09:13 AM
We have an automated process setup to send files via FTP and we now need to be able to receive updated files back from this Unix site. The vendor is telling us to either "list" or use a "wildcard" to select the updated file, which will have a standard extension for the file ready to be received. Unfortunately, when we rename on the send, they aren't using that same file name to send it back. Does anyone know how we can select a wildcard file automatically using script to receive the file and process on the iSeries? I hope this makes sense and thanks for any help!
01-09-2003, 09:13 AM
Great, thanks for your help. I hadn't included OVRDBF in any of my searches.
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.