Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: "set more off" within .ado


From   Eric Booth <ebooth@ppri.tamu.edu>
To   "<statalist@hsphsun2.harvard.edu>" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: "set more off" within .ado
Date   Wed, 27 Jul 2011 23:53:11 +0000

<>

It works for me on Stata 11 & 12 (Mac OSX).  
Note that you are not setting more within your program, see the difference between these examples:

********
clear all
set more on, permanently
sysuse auto


cap program drop dbir
program define dbir
version 11
**
codebook
end

dbir


cap program drop dbir
program define dbir
version 11
**
set more off, perm
set rmsg on
codebook
end

dbir
**********

- Eric

On Jul 27, 2011, at 6:43 PM, Tanuku AP wrote:

> Hello all,
> 
> Does Stata allow to --set-- options within an .ado file?  For me, "set more off" within an .ado doesn't have the desired effect.  However, interactively running "set more off" and then running the program turns off more.
> 
> 
> My ado file starts with:
> 
> ------
> clear 
> clear matrix
> set mem 100m
> set more off, permanently
> 
> capture program drop dbir
> 
> program define dbir
> version 11
> 
> ...
> ...
> -----
> 
> 
> 
> 
> --Tanuku
> 		 	   		  
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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   |   Site index