Page 1 of 1

Run procedure on all objects (series) in a group?

Posted: Fri Jul 24, 2009 11:03 am
by eliz.christy
I am a programmer, and am writing a program for a customer in eviews, although I have never used it before. I was able to write a program to run the Census x12 procedure on all of the series, but I have a line in the code for each series, and the series names are spelled out. This doesn't allow for changes in the series names. Is there a way to list the series in an array or to just run the procedure for all of the objects(series) in the group?

thanks

Re: Run procedure on all objects (series) in a group?

Posted: Fri Jul 24, 2009 11:09 am
by EViews Gareth
Use a for loop that runs from 1 to the number of objects in the group (group_name.@count). Then inside the loop use group_name.@seriesname to get the name of the current series.

Something like:

Code: Select all

for !i=1 to G.@count %name = G.@seriesname(!i) {%name}.x12 next

Re: Run procedure on all objects (series) in a group?

Posted: Fri Jul 24, 2009 12:56 pm
by eliz.christy
Thank you!!! :D

I was trying to read through the manual to figure it out and its so massive it was taking forever. I really appreciate it!!