Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: st: Cannot open .dta file due to size


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
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: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Steve Samuels
Gesendet: Montag, 14. Juni 2010 18:18
An: statalist@hsphsun2.harvard.edu
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
sjsamuels@gmail.com
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 <nshephard@gmail.com> wrote:
> On Mon, Jun 14, 2010 at 3:54 PM, miyu Lee <miyu.lee1@googlemail.com>
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 - nshephard@gmail.com
> 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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index