|
You need a 2 phase FTP connection. In phase 1, you connect to the remote FTP and issue the command dir (disk this will create a file called DIROUTPUT in your current library. Make sure to setup your current library beforehand. In phase 2, your program reads the file, and creates a new FTP script that for each entry creates 2 records: get 856.86524229.09140321.718 del 856.86524229.09140321.718 All scripts must be redirected into the FTP command with OVRDBF. Shalom Carmel ----------------------- www.venera.com - Exposing iSeries insecurity > date: Wed, 14 Sep 2005 14:30:59 -0500 > from: "Tyler, Timothy" <TylerT@xxxxxxxx> > subject: EDI FTP Help > > EDI FTP Help > We receive Advance Shipment Notifications from our distribution vendor > daily to a folder on a local networked PC. These files are named as > 856.86524229.09140321.718 and so on therefore the file names are > actually unknown without user intervention. I wish to grab all files in > this folder (directory) and FTP them up to the AS400 without user > intervention. I prefer to work from the AS400 using CL and FTP however I > have not been able to find FTP commands that will read a directory and > rename all the files. At that point I can do a MPUT and be OK , I think. > Also I would need to do this from the AS400 job scheduler. Can this be > accomplished utilizing these tools or must I look to some type of PC > script file and PC job scheduler. > Thank You > Tim Tyler >
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.