Page 1 of 1

Open Multiple Workfile and Delete Specific Series

Posted: Thu Nov 12, 2015 1:46 pm
by jpsimmon112
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

Re: Open Multiple Workfile and Delete Specific Series

Posted: Thu Nov 12, 2015 2:04 pm
by EViews Gareth
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.