|
I have a text file on a Novell Server which is constantly being added to. I have an AS400 program queued to run every 5 minutes which will FTP from the AS400 and GET this file. I then need to clear the server file so that the next time I do a GET I’m only GETting new records. As there is no ftp command for clearing a file how can achieve this? I’ve thought of DELeting the file and then PUTting an empty version of it back on, but how do ensure that I don’t delete any records added to it since the GET? I cannot risk missing out on any records that would otherwise be added to the server file while I am manipulating it. At the moment my only solution is to continually GET all the records and then decide on the AS400 whether or not they have already been processed, then clear the server file on a daily basis, after production is finished. The server file will have maximum 2000 records by the end of the day, so reprocessing the same data over and over will not impact the AS400 too much, but it’s not an ideal solution. Does anybody know the ‘ideal’ solution? TIA, Kevin Corcoran. IBS Lockheed Martin. .A world without string is a world of chaos. ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
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.