The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » Error after using SELECT - "File does not contain dictionary"
Re: Error after using SELECT - "File does not contain dictionary" [message #6783 is a reply to message #6782] Wed, 15 July 2015 08:38 Go to previous messageGo to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3199
Registered: February 2013
Senior Member
The .DO file contains instructions for reading the data and the .DCT file contains specifications for the layout of the data. The .DO file refers directly to the .DCT file, which in turn refers to the data (.DAT) file. You will need to modify both the .DO file and the .DCT file to change the filenames at the beginning of each file to specify the correct drive and the full path name of the directory in which the data file resides. These modifications can be done using a text editor such as Wordpad or Edit. Once these have been modified, you simply run the .DO file in Stata by starting Stata and then clicking on File, Do from the menu and selecting the .DO file. This will read the data into Stata. After the data have been read into Stata do not forget to save the file as a Stata dataset (.DTA extension).
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Creating Groups within datasets
Next Topic: Merging households members files+male files+female files
Goto Forum:
  


Current Time: Sun Nov 24 17:30:48 Coordinated Universal Time 2024