Page 1 of 1

Another Question on Spools

Posted: Tue Mar 29, 2011 11:25 am
by Jwink
Using Eviews 6 with July 2010 build. I'm trying to append forecast output to a spool using objects and the program is giving me an error message:
{%A}EQ is not defined in "DO_RETAILNSPOOL.APPEND "{A}EQ.FORECAST(G) {%A}F"

I know that this procedure will work if I have the names of the objects defined, but for some reason the objects are not being recognized. It would make repeating this procedure for a variety of variables much easier.

Here's a short version of of my program

%a = "retailn"
%spool = %a+"spool"
spool {%spool}
smpl 1990:1 2010:4
equation {%a}eq.ls dlog(retailn) c dlog(accomf) ma(1)
{%spool}.append {%a}eq
smpl 2011:1 2017:4
{%spool}.append "{%a}eq.forecast(g) {%a}f"

Thanks

Re: Another Question on Spools

Posted: Tue Mar 29, 2011 11:45 am
by EViews Gareth
You can't have replacement variables inside quotes. Try something along the lines of:

Code: Select all

%temp = %a + "eq.forecast(g) " + %a + "f" {%spool}.append %temp

Re: Another Question on Spools

Posted: Tue Mar 29, 2011 11:54 am
by Jwink
It Worked! Thanks.