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 at the end of May, and its replacement, statalist.org is already up and running.


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

st: RE: read dbf files directly into Stata?


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: read dbf files directly into Stata?
Date   Tue, 18 May 2010 16:59:12 +0100

No, I don't think so. If you're reluctant to adopt these other
solutions, it seems as if the only alternative is to go upstream and see
if your dataset provider can provide something other than .dbf. 

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


Brownell, Peter

I am wondering if there is a command available to read .dbf files
directly into Stata with jumping through the hoops of -odbc-?

I see that -shp2dta- converts .dbf files together with shape files into
Stata .dta files, but I haven't found any syntax to make it work with
only a .dbf file.

I was opening them with MS Excel and saving them as .csv files and then
using -insheet-, but I then realized that I was losing observations in
some of the larger files because Excel couldn't handle that many
observations.

Worst case, I can load the files on a machine with StatTransfer, but it
seems like it should be possible to do with just Stata. Any advice?


*
*   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