@keep vs @drop

For questions regarding programming in the EViews programming language.

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

ian.e.preston
Posts: 21
Joined: Mon Feb 23, 2015 1:06 pm

@keep vs @drop

Postby ian.e.preston » Fri Jul 03, 2015 1:21 pm

I'm trying to export a series to an excel file.
pagesave(t="excelxml") %file_out @keep x
creates an excel file with a date column and a series with a header that says "X" and then a whole series that is just X over and over
if I do pagesave(t="excelxml") %file_out @drop x2
it works as I'd expect, outputting all series except x2 with their numerical values. It really seems to be an issue with @keep.
I can workaround this issue by just dropping every other series, but given that I only want to export one series that's cumbersome. Any ideas what's causing this?
I'm using eviews 9

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

Re: @keep vs @drop

Postby EViews Gareth » Fri Jul 03, 2015 2:14 pm

Could you provide the workfile?

ian.e.preston
Posts: 21
Joined: Mon Feb 23, 2015 1:06 pm

Re: @keep vs @drop

Postby ian.e.preston » Fri Jul 03, 2015 2:16 pm

Sure. I've also attached the program I'm using
Right now it's using drop, which as you can see is cumbersome.
Attachments
lmi.prg
(3.49 KiB) Downloaded 272 times
lmi.wf1
(117.62 KiB) Downloaded 192 times

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

Re: @keep vs @drop

Postby EViews Gareth » Fri Jul 03, 2015 2:45 pm

which series are you trying to @keep?

ian.e.preston
Posts: 21
Joined: Mon Feb 23, 2015 1:06 pm

Re: @keep vs @drop

Postby ian.e.preston » Mon Jul 06, 2015 6:33 am

lmi_t, but the issue is the same with whatever series I try.

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

Re: @keep vs @drop

Postby EViews Gareth » Mon Jul 06, 2015 8:26 am

What's the build date of your copy of EViews 9? (Help->About EViews).

ian.e.preston
Posts: 21
Joined: Mon Feb 23, 2015 1:06 pm

Re: @keep vs @drop

Postby ian.e.preston » Mon Jul 06, 2015 8:30 am

April 20 2015.

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

Re: @keep vs @drop

Postby EViews Gareth » Mon Jul 06, 2015 8:47 am

Very out of date. Please update to the latest version.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests