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
avoid "divide by zero" prg stop
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt
-
- EViews Developer
- Posts: 563
- Joined: Thu Apr 25, 2013 7:48 pm
Re: avoid "divide by zero" prg stop
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.,
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
Who is online
Users browsing this forum: No registered users and 33 guests