Page 1 of 1

Using a Loop and the @wlookup function to create line graphs

Posted: Tue Jan 10, 2012 3:50 pm
by acraigpgpf
I'm writing a program to visually inspect the results of a solved model. I want to produce line graphs of all of my aliased variables that are created when I solve my model. This is the program as it stands.
%name = @wlookup("*_0", "series")

for %1 {%name}

smpl 2010 2085

line {%1}

next

Re: Using a Loop and the @wlookup function to create line gr

Posted: Tue Jan 10, 2012 3:56 pm
by EViews Gareth
I think you're missing a question.

Re: Using a Loop and the @wlookup function to create line gr

Posted: Tue Jan 10, 2012 5:09 pm
by acraigpgpf
Sorry. This program returns line graphs of all the variables in my workspace, not just the aliases. Any suggestions?

Re: Using a Loop and the @wlookup function to create line gr

Posted: Wed Jan 11, 2012 9:05 am
by EViews Gareth
It should (and in my tests, it does) only loop through those variables that have a _0 at the end.