@dropmap doesn't work

For questions regarding programming in the EViews programming language.

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

Ecovi
Posts: 30
Joined: Sun Mar 23, 2014 9:34 am

@dropmap doesn't work

Postby Ecovi » Sat Aug 16, 2014 10:13 am

Maybe I am missing the obvious here, but this program saves all variables instead of dropping them:

Code: Select all

wfcreate u 1 scalar a1 scalar a2 wfsave filename @dropmap a*
What am I doing wrong?

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: @dropmap doesn't work

Postby EViews Glenn » Sat Aug 16, 2014 12:16 pm

@dropmap is for dropping series valmaps when saving to a foreign destination. In fact, as noted in the manual, all of the keywords only work when saving to a foreign destination file. To do what you are doing in this example, you should delete the "a*" then save the workfile using wfsave.

Ecovi
Posts: 30
Joined: Sun Mar 23, 2014 9:34 am

Re: @dropmap doesn't work

Postby Ecovi » Sun Aug 17, 2014 4:21 am

Thanks for the prompt reply. Why would this not be made possible to work with normal work files though?
Also, I searched for it but I must admit I cannot find any reference for this in the Eviews Command and Programmming Reference manual (the latest version from April 2013). In fact, the example under the wfsave command section (p. 487) reads:

Code: Select all

wfsave macro @dropmap gdp*
which alludes to the possibility of using @dropmap on saving to local Eviews work files.

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: @dropmap doesn't work

Postby EViews Glenn » Sun Aug 17, 2014 12:09 pm

The interface for writing things with keep and drop is much newer than the interface for saving workfiles. You are correct that it would be useful to do, but it's not a trivial thing. To be honest, given that there is an alternative method of achieving the same thing, it's not high on our list. But I'll put it on the list again.

The syntax description at the top of the entry that you cite notes that the keywords work for foreign files. I'll see about getting the example fixed.

Ecovi
Posts: 30
Joined: Sun Mar 23, 2014 9:34 am

Re: @dropmap doesn't work

Postby Ecovi » Mon Aug 18, 2014 2:30 am

Thanks for reconsidering building this. It is true that using delete a* is 'an alternative method of achieving the same thing', but this is not true for the @keeplist option, though maybe you could copy the objects to keep to a new workfile and use copy a* to keep only those objects...

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: @dropmap doesn't work

Postby EViews Glenn » Tue Aug 19, 2014 7:35 am

The latter is currently the best approach. We have simple tools for creating a new page from an existing, using wildcard characters.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests