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" <>
To   <>
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 

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, is just a .do file, and its 
special character does not affect this 

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. 


Alan Neustadtl
> I have observed a curious behavior with "set more off".  When I use
> that command in my 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:

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