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

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

acraigpgpf
Posts: 8
Joined: Mon Jan 09, 2012 8:53 am

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

Postby acraigpgpf » Tue Jan 10, 2012 3:50 pm

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

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13586
Joined: Tue Sep 16, 2008 5:38 pm

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

Postby EViews Gareth » Tue Jan 10, 2012 3:56 pm

I think you're missing a question.

acraigpgpf
Posts: 8
Joined: Mon Jan 09, 2012 8:53 am

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

Postby acraigpgpf » Tue Jan 10, 2012 5:09 pm

Sorry. This program returns line graphs of all the variables in my workspace, not just the aliases. Any suggestions?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13586
Joined: Tue Sep 16, 2008 5:38 pm

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

Postby EViews Gareth » Wed Jan 11, 2012 9:05 am

It should (and in my tests, it does) only loop through those variables that have a _0 at the end.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests