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!
Suppressing Error message division by 0
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Suppressing Error message division by 0
When you run the program, set the maximum number of errors to something high.
Re: Suppressing Error message division by 0
Many thanks Gareth!
Re: Suppressing Error message division by 0
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
Who is online
Users browsing this forum: No registered users and 2 guests
