[email protected] (William Gould, Stata) writes:
> Brendan Halpin <[email protected]>, trying to find out whether Stata had
> been invoked in batch-style (stata -b), wrote,
>
> > I found [...] by trial and error and now have the following code in
> > profile.do:
> >
> > if "$S_MODE" != "batch" {
> > set memory 100m
> > }
>
> He also discovered that $S_MODE can be accessed as c(mode), and asked
> whether there is any reason to prefer on over the other.
>
> Answer: c(mode) is considered more modern usage, and so should be prefered
> over $S_MODE. Both, however, return the same thing and both will continue to
> work. $S_MODE is no longer documented.
Thanks for the info. Oddly enough, just five minutes ago I found
your note about set memory,permanently
(http://www.stata.com/support/faqs/data/setmemory1.html) which
alerts me to the info that there is a better way to set the default
(better in the sense that a command-line switch overrides, as it
should, the default setting) .
Where does "permanently" write the info to, though?
Brendan
--
Brendan Halpin, Department of Sociology, University of Limerick, Ireland
Tel: w +353-61-213147 f +353-61-202569 h +353-61-338562; Room F2-025 x 3147
mailto:[email protected] http://www.ul.ie/sociology/brendan.halpin.html
*
* 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/