delete series in a wf based on date
Moderators: EViews Gareth, EViews Moderator
delete series in a wf based on date
I have a wf with many series, some for the period 1980-2021 and some for the period 1980-2031. I would like a code that easily deletes all series that only have values for the period 1980-2021. But I don't know the best way to do that. Super thankful for tips on how to solve this.
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13323
- Joined: Tue Sep 16, 2008 5:38 pm
Re: delete series in a wf based on date
Code: Select all
%serlist = @wlookup("*", "series")
smpl 2022 @last
for %j {%serlist}
if {%j}.@obs=0 then
d {%j}
endif
next
smpl @all
Follow us on Twitter @IHSEViews
Re: delete series in a wf based on date
Perfect, thanks!!
Return to “General Information and Tips and Tricks”
Who is online
Users browsing this forum: No registered users and 11 guests