Page 1 of 1

Display contents of control variable

Posted: Mon Oct 27, 2014 7:35 pm
by gopvan
Hi...very basic question :(

How do I output a variable's contents. What I mean is, if a series is the output then a series object gets created. But what about a scalar ?

%b = "mom"

%a = "hi" + %b

I get on the status line %a computed.

Likewise, if I calculate !ans = @corr(x,y)

How do I see the output of a variable ?

if I have say FOR loop in my program I would like to see the value of the control variable each time. In a programming language I would say something like printf(i) to know what is the value. How would I do the same here. Should i use logmode ? Is there any other way to do this ?

Re: Display contents of control variable

Posted: Mon Oct 27, 2014 7:57 pm
by EViews Gareth
Store it in a workfile object (such as a scalar, a string, a table, etc...), or output it to the status bar with the statusline command.