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

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


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: A way to "set more off" forever?
Date   Thu, 24 Nov 2005 22:24:59 -0000

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 
n.j.cox@durham.ac.uk 

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/



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