Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: -save- a varlist
From
Daniel Feenberg <[email protected]>
To
[email protected]
Subject
Re: st: -save- a varlist
Date
Tue, 30 Oct 2012 14:08:55 -0400 (EDT)
On Tue, 30 Oct 2012, Nick Cox wrote:
As Daniel Feenberg underlined recently, you can -outsheet- part of the
data. In the same vein, -outfile- is another alternative.
The underlying problem here is that the -save- command doesn't allow a
variable list (of -if- or -in-, for that matter). But -outsheet- and
-outfile- do. Alternatively, if the user has some writeable local storage
STATATMP can be set by the user to point there, and that would speed up
-preserve-, -restore- and many other commands.
dan feenberg
Nick
On Tue, Oct 30, 2012 at 2:10 PM, Jeph Herrin <[email protected]> wrote:
I have a very large dataset (20gb) that I must access remotely, so that
-use- and -save- each take about 30minutes. When I have this file open,
I would like to create some secondary files that contain only 1-3 variable.
If the file were smaller, I would typically use -preserve-, -keep-,
-save-, -restore- to do this. However, this takes a couple of hours. So
I am using
. export excel var1 var2 var3 using file.xls, replace
Then later using -import excel- to read them back in. This is much
faster, but has the obvious drawback that variable labels and other
attributes are lost. It is also aesthetically unsatisfying.
Can anyone suggest an alternative?
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/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/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/