Hi,
I have a pre-defined string containing variables:
%components = "pieh schp banp ncar main"
I want to loop over these variables, like I do here:
for %n {%components}
series dc_{%n}
call devcycle (dc_{%n}, {%n}, 0)
delete {%n}
next
This combination of variables is used multiple times in my program and I do not want to change it everywhere, but only once (at the start of my program), so it is also easy to use for others. Unfortunately this does not work, since it does not take the five components as seperate variables, but defines %n = "pieh schp banp ncar main".
Can/should this be done in a different way?
Thanks,
Paul
Loop over pre-defined string
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Loop over pre-defined string
Which version of EViews?
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Loop over pre-defined string
Then you can not.
Who is online
Users browsing this forum: No registered users and 1 guest
