Page 1 of 1

looping through a list of series

Posted: Thu Jan 14, 2010 8:39 am
by Krzysztof
let's assume that I am looping through list of series with the code below

Code: Select all

for %y sed cue tor inp series {%y}_proc = {%y}*100 next
but if I would like to use the list of the same variables many times it would be desirable to define it within the code and then loop like below

Code: Select all

%list = "sed cue tor inp" for %y {%list} series {%y}_proc = {%y}*100 next
this does not work unfortunately :(
I know that I could create a group including these series and then loop through all the series in the group. However, the list would be much straight forward.

Is my idea feasible to implement in Eviews?

Thanks a lot in advance, k

Re: looping through a list of series

Posted: Thu Jan 14, 2010 9:00 am
by EViews Gareth
That will work in EViews 7.


A work-around in EViews 6 is to store the codes into a table, then loop through the cells of the table everytime you want to do the loop.