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]
AW: st: Cannot open .dta file due to size
From
"Martin Weiss" <[email protected]>
To
<[email protected]>
Subject
AW: st: Cannot open .dta file due to size
Date
Mon, 14 Jun 2010 18:21:17 +0200
<>
For a random sample of, say, approx. 1%, miyu may also use a command such as
-use "name of dataset" if runiform()<.01-.
HTH
Martin
-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Steve Samuels
Gesendet: Montag, 14. Juni 2010 18:18
An: [email protected]
Betreff: Re: st: Cannot open .dta file due to size
For an example with -awk-, see:
http://www.stata.com/statalist/archive/2009-01/msg00802.html
Steve
--
Steven J Samuels
[email protected]
18 Cantine's Island
Saugerties NY 12477
USA
Voice: 845-246-0774
Fax: 206-202-4783
On Mon, Jun 14, 2010 at 12:03 PM, Neil Shephard <[email protected]> wrote:
> On Mon, Jun 14, 2010 at 3:54 PM, miyu Lee <[email protected]>
wrote:
>> I have a huge dataset (200 GB) which I cannot open on STATA. Is there
>> any way I can make STATA to open the set only for selected variables
>> or choose the first, say, 100 observations only?
>
> That is indeed a large file, are you sure its saved in Stata format as
.dta?
>
> Your best bet might be to open it on the computer on which it was
> saved (or identical specification with the same version of Stata
> installed).
>
> If however its a text file of sorts that you are trying to -insheet-
> you could use something like the 'head -n100 [filename] > subset.txt'
> command under UNIX-like OS's (which includes the terminals under MAC
> OSX) to get the first 100 lines of the file into the file subset.txt.
>
> If you don't have access to such systems you can install Cygwin which
> is a UNIX shell for Windows (see http://www.cygwin.com/). There may
> be a similar native command under the DOS prompt but I'm not familiar
> with DOS I'm afraid.
>
> Neil
>
>
> --
> "... no scientific worker has a fixed level of significance at which
> from year to year, and in all circumstances, he rejects hypotheses; he
> rather gives his mind to each particular case in the light of his
> evidence and his ideas." - Sir Ronald A. Fisher (1956)
>
> Email - [email protected]
> Website - http://slack.ser.man.ac.uk/
> Photos - http://www.flickr.com/photos/slackline/
> *
> * 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/
>
*
* 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/
*
* 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/