Hello everyone,
Here is what I do now : ---
foreach x in apple orange mango {
clear
use hugefruitbasket <==== HUGE FILE
keep if symbol=="`x'"
save `x', replace
}
-------------------------------------------
So essentially I load a huge file in memory, which makes my computer
hang for a moment, then I keep a portion of it, give it a name and
save it.
------------------------------------------
What I want to do is : --- Load a big file ONCE, then do something like
save `x' if symbol==`x'
or outsheet if symbol==`x'
so that I can save parts of the file without reloading / messing the
original file.
I think this is very useful for me.
Is there a clever command to do this ?
Thank you,
Ashim.
*
* 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/