× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Tim:
I do this all day long....
A few suggestions.
1.  You could use the QNTC file system on the AS400 to read the directory of
the PC.  This is pretty slick solution and allows you to read the PC file as
if it were sitting on the IFS.  I have written a CMBDIRDTA (combine
directory data) command that will take all the files in an IFS (including
files in the QNTC file system), and combine them into a single AS400
physical file.

2.  You could do this writing FTP scripts.  Previous post is correct, you
effectively do this you must make 2 FTP connections to be sure you get the
files.  The first time you do an MGET and FTP the data to a folder in the
IFS of the AS400.  If you look on our website, under the download section,
there is a DIR command that will allow you to list the files in an IFS
folder.  You can list them to the screen, and printout or and OUTFILE.  If
you use the outfile option, you can then read the contents of the directory
and build an FTP script that deletes all the file names.  This is really the
only safe method to be sure you don't delete a file you have not received.

3.  We sell a commercial FTP program that will do everything you want to do
and more.  Contact me off line for details if interested.

Regards,
cjg 

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Tyler, Timothy
Sent: Wednesday, September 14, 2005 3:31 PM
To: MIDRANGE-L@xxxxxxxxxxxx
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    
 
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/midrange-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.