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

Re: st: Re: Batch variable?

From (William Gould, Stata)
Subject   Re: st: Re: Batch variable?
Date   Fri, 28 Oct 2005 10:18:35 -0500

Brendan Halpin <>, 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
>       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.

-- Bill
*   For searches and help try:

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