× 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.



On Thu, Sep 29, 2016 at 12:15 PM, Jim Steil <jim@xxxxxxxxxxxxxxx> wrote:
So, you're building a file with the data retrieved? Maybe just retrieve it
to a temp file name and then change the name when you have it completely
downloaded. CL program can then check for the real name to see if it
exists, if it does then you know the download completed fully.

Not ideal, but should work.

For the specific (and simple) case of checking whether the data
transfer completed successfully, I think this is the cleanest
approach. It is actually close to ideal. It's sort of analogous to
performing database operations that don't "count for real" until an
explicit commit.

This is simpler and more direct than futzing with an exit code. The
exit code is most appropriate if you have a few different kinds of
failures (or possibly successes) that you want to distinguish among.
The exit code is meant to serve the same role as the "end code" (or
"ending code") that you see in the completion message of a native i
job.

(Jim, I get the feeling you already know all this, but maybe some
other readers don't.)

John Y.

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.