Page 1 of 1

delete all valmap objects

Posted: Fri Jan 03, 2020 3:18 pm
by bcchen
Hi EViews gurus,

Is there a way in programming to delete all the valmaps objects with no naming rules all at once? also, same for tables?

Thanks in advance.
BC

Re: delete all valmap objects

Posted: Fri Jan 03, 2020 7:40 pm
by EViews Gareth
Use the @wlookup function to return a list of all objects of a certain type, then use that list to delete.

Code: Select all

%vallist = @wlookup("*", "valmap") delete {%vallist}

Re: delete all valmap objects

Posted: Thu Jan 09, 2020 11:49 am
by bcchen
Thank you! That works!
So I guess for tables can I changes "valmap" to "table"?

Re: delete all valmap objects

Posted: Thu Jan 09, 2020 11:50 am
by EViews Gareth
aye