EViews 13: @ifirst and @ilast commands

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

mmiller2
Posts: 44
Joined: Tue Aug 23, 2016 9:56 am

EViews 13: @ifirst and @ilast commands

Postby mmiller2 » Tue Oct 04, 2022 4:39 am

The @ifirst and @ilast commands appear to have been broken in the transition from EViews 12 to EViews 13. Please run the following commands in each version:

Code: Select all

wfcreate(wf=work, page=a) a 1901 2100
smpl 1950 2021
series x = 1
smpl @all
scalar per1 = @ifirst(x)
scalar per2 = @ilast(x)


Using EViews 12, per1 = 50 and per2 = 121

Using EViews 13, per1 = 1 and per2 = 72

EViews Jason
EViews Developer
Posts: 870
Joined: Tue Sep 16, 2008 3:50 pm

Re: EViews 13: @ifirst and @ilast commands

Postby EViews Jason » Tue Oct 04, 2022 12:37 pm

It will be fixed in the next patch

mmiller2
Posts: 44
Joined: Tue Aug 23, 2016 9:56 am

Re: EViews 13: @ifirst and @ilast commands

Postby mmiller2 » Tue Oct 04, 2022 2:16 pm

Thanks Jason! Any idea when the patch will be available?

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

Re: EViews 13: @ifirst and @ilast commands

Postby EViews Gareth » Tue Oct 04, 2022 3:04 pm

Within a day or two.
Follow us on Twitter @IHSEViews

mmiller2
Posts: 44
Joined: Tue Aug 23, 2016 9:56 am

Re: EViews 13: @ifirst and @ilast commands

Postby mmiller2 » Wed Oct 12, 2022 1:50 pm

There still seems to be something going on with the @ifirst and @ilast functions.

When I run the attached program in EViews 12, I see the following result in the log window.
per1 = 220
per2 = 486

However, when I run the same program in EViews 13, I see:
per1 = 1
per2 = 267

The documentation says, "returns the workfile index of the first non-missing value in the series for the current sample." While, this seems to suggest that the EViews 13 (relative to current sample) result is correct, we have code that is now broken because it has been doing it the EViews 12 way (relative to workfile range) for several years.
Attachments
test.prg
(189 Bytes) Downloaded 74 times

EViews Jason
EViews Developer
Posts: 870
Joined: Tue Sep 16, 2008 3:50 pm

Re: EViews 13: @ifirst and @ilast commands

Postby EViews Jason » Wed Oct 12, 2022 4:33 pm

We will get a patch out ASAP

mmiller2
Posts: 44
Joined: Tue Aug 23, 2016 9:56 am

Re: EViews 13: @ifirst and @ilast commands

Postby mmiller2 » Fri Oct 14, 2022 6:03 am

Thanks Jason! I just installed the Oct 13 patch and it's working for me now.


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 24 guests