Open Multiple Workfile and Delete Specific Series

For questions regarding programming in the EViews programming language.

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

jpsimmon112
Posts: 1
Joined: Thu Nov 12, 2015 1:42 pm

Open Multiple Workfile and Delete Specific Series

Postby jpsimmon112 » Thu Nov 12, 2015 1:46 pm

Need a temporary program code to open 50 WorkFiles and delete a couple specific series out of each.
Wanting to avoid having to open each up individually, any one have a program that will do this?

Thanks

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

Re: Open Multiple Workfile and Delete Specific Series

Postby EViews Gareth » Thu Nov 12, 2015 2:04 pm

Pretty trivial program to write. Just need to write a loop that loops through the workfile names/paths, opens them and then deletes the series.

wfopen is the command to open a workfile.
delete is the command to delete a series.

You can use @wdir to list all the workfiles in a specific directory.

For loops are pretty well documented.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests