Page 1 of 1

Suppressing Error message division by 0

Posted: Mon Sep 23, 2013 5:51 am
by DBel2012
Hello,

I'm using Eviews 7.

I've got a program that creates new time series from a group, based on the annual percentage change (ex. var_A=@pchy(var_B)).

Since series from that group can be equal to 0 in the sample period, an error message is generated by Eviews and it stops processing the series in that group.

Is it possible to tell Eviews either not to generate an error message when a division by zero occures, or generate the error message but continue processing with the remaining series of the group?

Thanks!

Re: Suppressing Error message division by 0

Posted: Mon Sep 23, 2013 7:52 am
by EViews Gareth
When you run the program, set the maximum number of errors to something high.

Re: Suppressing Error message division by 0

Posted: Mon Sep 23, 2013 8:19 am
by DBel2012
Many thanks Gareth!

Re: Suppressing Error message division by 0

Posted: Tue Oct 08, 2013 1:05 pm
by jthodge
I think this would work also (assuming you have a monthly workfile):

Code: Select all

smpl @all if var_B(-12)<>0 genr var_A=@pchy(var_B) smpl @all