comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » How to make long program keep going if error comes??
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
How to make long program keep going if error comes?? [message #94148] Fri, 03 February 2017 22:13 Go to next message
priyamalik484 is currently offline  priyamalik484
Messages: 7
Registered: December 2016
Junior Member
Hell all,

I am running a code over 85K files in loop, which is
taking very much time, but there is an issue if any error comes for
a file, the code is getting stopped there and I have to to all process
again and again. Which is very much time consuming.
Is there any way in which I can continue my process after correcting
the issue with that file? Or even if I can simply note the errors
for future and keep my program going, and I can run separately my
code after that for these wrong files?

Please any help???
Re: How to make long program keep going if error comes?? [message #94149 is a reply to message #94148] Sat, 04 February 2017 05:50 Go to previous messageGo to next message
Heinz Stege is currently offline  Heinz Stege
Messages: 189
Registered: January 2003
Senior Member
See here: http://www.harrisgeospatial.com/docs/CATCH.html

Cheers, Heinz
Re: How to make long program keep going if error comes?? [message #94150 is a reply to message #94148] Mon, 06 February 2017 03:03 Go to previous message
Markus Schmassmann is currently offline  Markus Schmassmann
Messages: 129
Registered: April 2016
Senior Member
On 02/04/2017 07:13 AM, priyamalik484@gmail.com wrote:
> I am running a code over 85K files in loop, which is
> taking very much time, but there is an issue if any error comes for
> a file, the code is getting stopped there and I have to to all process
> again and again. Which is very much time consuming.
> Is there any way in which I can continue my process after correcting
> the issue with that file? Or even if I can simply note the errors
> for future and keep my program going, and I can run separately my
> code after that for these wrong files?
While Heinz' proposal to use proper error handling [1] (e.g. CATCH [2])
is better, sometimes using .CONTINUE [3] and/or other executive commands
[4] makes for a sufficient quick and dirty solution.

Good Luck, Markus

[1] http://www.harrisgeospatial.com/docs/controlling_and_recover i.html
[2] http://www.harrisgeospatial.com/docs/CATCH.html
[3] http://www.harrisgeospatial.com/docs/_CONTINUE.html
[4] http://www.harrisgeospatial.com/docs/routines-24.html
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Generation of another Gaussian random variable from a given one...
Next Topic: Change widget parent or duplicate widget. Is is possible?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:13:17 PDT 2025

Total time taken to generate the page: 0.00404 seconds