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

st: RE: save and outfile


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: save and outfile
Date   Tue, 30 Sep 2003 17:23:56 +0100

. ssc desc savesome

But it's not a big deal; you could knit your own:

program def savesome
*! NJC 1.0.0 25 April 2001 
        version 7.0 
        syntax [varlist] [if] [in] using/ [ , * ] 
        preserve
        qui { 
                if `"`if'`in'"' != "" { keep `if' `in' } 
                keep `varlist' 
        } 
        save `using', `options' 
end     

Also, see 

How can I save one or more parts of a large dataset? 
http://www.stata.com/support/faqs/data/savesome.html

Nick 
n.j.cox@durham.ac.uk 

> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu]On Behalf Of Sascha O.
> Becker
> Sent: 30 September 2003 16:48
> To: statalist@hsphsun2.harvard.edu
> Subject: st: save and outfile
> 
> 
> Dear all,
> 
> I have an extremely simple question.
> Is there a "save"-like command (i.e. allowing to save 
> datasets in Stata
> format) but having options a la "outfile", i.e.
> 
> newsave [varlist] using filename [if exp] [in range]
> 
> Ciao, Sascha
> 
> -- 
> 
> Dr. Sascha O. Becker
> Center for Economic Studies
> University of Munich
> Schackstr. 4 - 80539 Munich, Germany
> 
> *
> *   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/



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