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 
Return to the default flat view Create a new topic Submit Reply
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
[Message index]
 
Read Message
Read Message
Read Message
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: Fri Oct 10 15:50:33 PDT 2025

Total time taken to generate the page: 0.71688 seconds