Problem with @keep (@keepmap) @drop (@dropmap)

For questions regarding programming in the EViews programming language.

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

fioramanti
Posts: 5
Joined: Thu Nov 27, 2014 4:09 am

Problem with @keep (@keepmap) @drop (@dropmap)

Postby fioramanti » Thu Nov 27, 2014 4:21 am

Hi,
I'm having problem in using @keep, @keepmap, @drop and @dropmap (what I really need is @keep, but I was trying also with the other options).

In both commands:

wfopen nomefile.wf1 @keep serieslist
pageload(page=nomepage) "mypath\nomefile.rat" @keep serieslist

the @keep option (but also the others) does not work (Eviews 8.0) and all the series are loaded.
Any idea why?

Marco

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

Re: Problem with @keep (@keepmap) @drop (@dropmap)

Postby EViews Gareth » Thu Nov 27, 2014 8:03 am

The @keep argument does not apply to workfiles. When you open a workfile, all objects are opened.

fioramanti
Posts: 5
Joined: Thu Nov 27, 2014 4:09 am

Re: Problem with @keep (@keepmap) @drop (@dropmap)

Postby fioramanti » Thu Nov 27, 2014 8:30 am

ok, but it doesn't work with wfsave (clearly indicated in the guide) and in pageload either.

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

Re: Problem with @keep (@keepmap) @drop (@dropmap)

Postby EViews Gareth » Thu Nov 27, 2014 8:51 am

Correct

misscats
Posts: 29
Joined: Wed Mar 19, 2014 8:37 am

Re: Problem with @keep (@keepmap) @drop (@dropmap)

Postby misscats » Mon Apr 13, 2015 5:11 am

Hi Gareth

Do you have any alternative suggestion if I want to have something like:

wfsave normal.wf1 @keep a*

and it only saves any series starting with a from the current workfile?

Thanks,
misscats

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

Re: Problem with @keep (@keepmap) @drop (@dropmap)

Postby EViews Gareth » Mon Apr 13, 2015 8:15 am

Build a string containing all the objects you want to save using @wlookup, then use that string in the wfsave @keep part.

misscats
Posts: 29
Joined: Wed Mar 19, 2014 8:37 am

Re: Problem with @keep (@keepmap) @drop (@dropmap)

Postby misscats » Tue Apr 14, 2015 10:04 am

Great. Many thanks.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests