Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Thanks! RE: st: A way to "set more off" forever?


From   Clare L Maxwell <[email protected]>
To   [email protected]
Subject   Thanks! RE: st: A way to "set more off" forever?
Date   Thu, 24 Nov 2005 19:13:19 -0600

Thank you to the people who answered this.

I had read through the part Nick mentions below, tried the profile.do also, but never thought to check "more" as a command, so never discovered ",permanently." I will try it out at the beginning of the data-processing command file I am building, then set it back on at the end.

Yours truly,
Clare


At 10:24 PM +0000 11/24/05, Nick Cox wrote:

Not curious at all, but documented and
reasonable.

It is explained in the very last
place I looked, [U] 7.2, although I should
have looked there first. [R] more and [P] more
did not say more on this point.

In essence,

. set more off

or for that matter

. set more on

is a local action. It holds until
countermanded, or until the current process
finishes, whichever is the sooner. The
current "process" here means an interactive
session, a do file or a program. Evidently,
profile.do is just a .do file, and its
special character does not affect this
behaviour.

To see why this is what you really want,
consider that you call a program which
calls a program ... and so on, and the
innermost program has

. set more on

If that were a global setting, then
some innermost routine could affect
the behaviour of all the programs
of Stata above it. That would be the wrong
way round. Local -set-ting is exactly
right as the behaviour.

As Svend Juul pointed out, if you really want
this behaviour, you want a batch job.

Nick
[email protected]

Alan Neustadtl

 I have observed a curious behavior with "set more off".  When I use
 that command in my profile.do file, it does not work.   I set it off
 permanently, but I was still curious about the behavior.  Any ideas?

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index