Page 1 of 1

Can I continue a command from a new line?

Posted: Wed Jul 14, 2010 11:56 am
by learneviews
For example, in Matlab, you can add "..." (3 dots) to the end of a line and continue to write your command on the next line without breaking the codes.

Can I do something similar in Eviews. This is very useful when, for example, your ls equation is very long.

Thank you

Re: Can I continue a command from a new line?

Posted: Wed Jul 14, 2010 1:49 pm
by EViews Glenn
From the EViews Command and Programming Reference
If you wish to have greater control over the appearance of your lines, you can manually
break long lines using the ENTER key, and then use the underscore continuation character
“_” as the last character on the line to join the multiple lines. For example, the three separate
lines

Code: Select all

equation eq1.ls _ y x c _ ar(1) ar(2)
are equivalent to the single line

Code: Select all

equation eq1.ls y x c ar(1) ar(2)

Re: Can I continue a command from a new line?

Posted: Wed Jul 14, 2010 3:15 pm
by EViews Gareth
Note that the continuation character can be a bit quirky. You always need a space before it, thus it is probably proper to say that the character is \" _\", rather than just \"_. I also find that sometimes it doesn\'t quite accept it unless it also has a space afterwards, so I usually use \" _ \" for continuation.

Re: Can I continue a command from a new line?

Posted: Wed Jul 14, 2010 4:50 pm
by learneviews
Thank you very much. This is great.