Keep Program Moving Despite Error

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

kcaron
Posts: 89
Joined: Wed Mar 04, 2015 11:46 am

Keep Program Moving Despite Error

Postby kcaron » Fri Jan 29, 2021 10:37 am

I have a program that runs a loop and calculates a @dlog of a series.

When it gets to a negative number, I get a message which says:

"Log of non positive number - Missing data generated in series..."

The message stops the program.

I'm ok with the missing data being generated in the series.

How do I get the program to ignore the error and just keep moving?

Many thanks!

Kevin

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13318
Joined: Tue Sep 16, 2008 5:38 pm

Re: Keep Program Moving Despite Error

Postby EViews Gareth » Fri Jan 29, 2021 11:03 am

Options->General Options->Series AutoSeries->Generate NAs

Options->General Options->Advanced Options->Permissive Error Handling
Follow us on Twitter @IHSEViews

kcaron
Posts: 89
Joined: Wed Mar 04, 2015 11:46 am

Re: Keep Program Moving Despite Error

Postby kcaron » Fri Jan 29, 2021 11:49 am

That's soooo cool!

Works like a charm!

Never would have thought of that myself...

THANK YOU!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 54 guests