Page 1 of 1

Output variable to file

Posted: Wed Oct 10, 2012 1:52 am
by Patrick
Hi, I have a simple regression that I output to a text file via

Code: Select all

... output(t) filename.txt equation eq.stepls() portfolio c @ somegroup eq.stats(p)
I also have a string variable %sometext that I would like to print to the text file somewhere. Anywhere is fine. How do I do this?

Re: Output variable to file

Posted: Wed Oct 10, 2012 7:46 am
by EViews Gareth

Code: Select all

string temp = %sometext print temp

Re: Output variable to file

Posted: Thu Oct 11, 2012 1:32 am
by Patrick
Thanks Gareth, i tried to do print %day but declaring a string was the solution.

What's the difference between these?

Code: Select all

%test = "Hello" string test = "Hello"

Re: Output variable to file

Posted: Thu Oct 11, 2012 6:18 am
by EViews Gareth
One makes a program variable, that exists only whilst the program is running, the other makes a workfile object.