|
Sounds like a typical incompletely designed IBM i process :)
Maybe at the origination they should enhance the process so that it
provides a "ready" list in the directory.
On Wed, Sep 12, 2018 at 9:02 AM, Christopher Bipes <
chris.bipes@xxxxxxxxxxxxxxx> wrote:
If you do a DIR out to a text file you can compare the file size from the
remote server to the file size in your local system? Poor man's way.
But if they provide any check sum or end of file character within the
file, you can compare / check for that.
Chris Bipes
Director of Information Services
CrossCheck, Inc.
-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxx> On Behalf Of Stephen
Coyle
Sent: Wednesday, September 12, 2018 7:51 AM
To: MIDRANGE-L@xxxxxxxxxxxx
Subject: How to Validate for File Completeness after MGET
Hi All,
I need to connect to an FTP site using sFTP.
At any time of the day there could be .txt files dropped there.
I have a job on the scheduler that will run at intervals to check for .txt
files and transfer them to the IFS.
My question is how to validate that the MGET only transferred files that
were complete.
I assume that the MGET will grab files that may be in the process of being
created.
It would be great if that assumption is wrong!
How do I know files transferred with MGET are complete files?
I cannot dictate any changes to what is being dropped by our partner.
Thanks in advance for any info!
- Steve
--
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: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD
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.