Page 1 of 1

avoid "divide by zero" prg stop

Posted: Tue Dec 18, 2018 2:25 pm
by BT454
Hi all,
I'm running a job that has many loops and nested loops where I am dividing by zero. How can I allow for the prg to finish without stopping when encountering the divide by zero?
Thanks,
Bob

Re: avoid "divide by zero" prg stop

Posted: Tue Dec 18, 2018 5:02 pm
by EViews Matt
Hello,

You can increase the number of errors allowed before EViews terminates the program (the default is one). The "Run Program" dialog has a field for "Maximum errors before halting:", which you can simply change to a large value. Alternatively, within a program you can adjust the maximum via the command "setmaxerrs", e.g.,

Code: Select all

setmaxerrs 10000