×
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 Tue, Mar 27, 2018 at 2:06 PM, Rob Berendt <rob@xxxxxxxxx> wrote:
I failed to see anything in there to handle errors like
- I'm trying to store it into a numeric but it's alpha.
- My column is only 15 characters but they are sending me 25.
- Or the error the OP was having.
He did say that RDi imported it, and he did not mention getting any
errors when doing it that way.
So it is very possible that the data is right, and that CPYFRMIMPF is
having its own issues.
It certainly is also possible that RDi is doing something wrong, and
doing it silently. But until and unless that has been identified,
there's not much point in putting in additional code. As it stands, a
breaking error will automatically generate an exception, which is what
you want until you get a chance to see what the nature of the error
was, and then decide whether to add code to handle it silently.
The point was to provide a reference for comparison with other
solutions. However much extra code you would need to add for
error-handling, you'd need to add that much or more in another
language. And if the data is clean, then there's already working code
for you, in 20-ish lines of Python.
John Y.
As an Amazon Associate we earn from qualifying purchases.