Page 1 of 1

Error handling

Posted: Mon Apr 06, 2020 3:07 am
by fi99ggb
Hello

I am using the setmaxerrs to handle processing errors; however, there are cases when EViews naturally stops, for example, when a file I am instructing to open does not exist or when a file cannot be reshaped. In those cases, I would like to manage the error. For example, when EViews stops I would like to run another program file or a specific part of a program file. I would like to note that my code is quite long and it would be practically difficult to know where the error has taken place.

I hope I make sense. I appreciate that my inquiry is unusual and maybe there is no easy solution.

Thanks
George

Re: Error handling

Posted: Mon Apr 06, 2020 8:04 am
by EViews Gareth
You can use @errorcount to check if an error has occured after a line, and then branch based on if it has or not.

Re: Error handling

Posted: Wed Apr 08, 2020 1:10 am
by fi99ggb
Thank you!