datenext bug

For notifying us of what you believe are bugs or errors in EViews.
Please ensure your copy of EViews is up-to-date before posting.

Moderators: EViews Gareth, EViews Moderator

radmirer
Posts: 4
Joined: Thu Aug 11, 2016 2:44 am

datenext bug

Postby radmirer » Tue Mar 20, 2018 7:27 am

Hi,

I found that datenext is not working properly using monthly data. For example, while the first command below gives the correct result on my comupter, the command below does not. I was able to reproduce this on other computers as well:

show @datenext(@dateval("1995M01"), "mm")
show @datenext(@dateval("2000M03"), "MM")

Regards

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

Re: datenext bug

Postby EViews Gareth » Tue Mar 20, 2018 7:31 am

What result did it give you that was incorrect?

I just ran it on my PC and it gave the correct date (2000/04/01)
Follow us on Twitter @IHSEViews

smr01
Posts: 9
Joined: Mon Oct 27, 2008 2:24 pm

Re: datenext bug

Postby smr01 » Tue Mar 20, 2018 9:56 am

It seems to only be an issue with M3, M6, M9 and M12

M3 gives me 2000Q2, M6 200S2 M9 2000Q4 and M12 2001

smr01
Posts: 9
Joined: Mon Oct 27, 2008 2:24 pm

Re: datenext bug

Postby smr01 » Tue Mar 20, 2018 10:00 am

Oops using EViews 10 Enterprise March 15 2018 build

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

Re: datenext bug

Postby EViews Gareth » Tue Mar 20, 2018 10:12 am

Note that the function will return a date. As in a single day.

2000Q2 is the same thing as 2000M6, which is the same thing as 2000/06/01.

If you would like the result shown in a different date format, change the display format in which you are displaying the date.
Follow us on Twitter @IHSEViews


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 16 guests