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

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


From   Ulrich Kohler <kohler@wz-berlin.de>
To   statalist@hsphsun2.harvard.edu
Subject   Re: Thanks! RE: st: A way to "set more off" forever?
Date   Fri, 25 Nov 2005 09:38:05 +0100

Clare L Maxwell wrote:
> 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.

You will not need to set it back to at the end. As Nick said, it is a local 
action. Hence, it does not have any effects on what you are doing at the 
command line. 

Uli

> 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
> >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/
>
> *
> *   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/

-- 
kohler@wz-berlin.de
+49 (030) 25491-361
*
*   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