Standalone converter of tab-separated data to Stata's .dta formatDescriptionThe program tab2dta.exe is a standalone converter of tab-separated data to Stata's .dta dataset format. Variable and value labels can be applied by specifying an optional .do file, which should follow Stata's syntax for labelling. This .do file may use only a limited set of commands for labelling data plus must conform to additional limitations below.
Standalone here means that the converter is self-sufficient, specifically it does not require Stata or Stat/Transfer to perform conversion. Tab-separated data file is a file which uses tabulation character (ASCII code 09) to separate fields within records. It is a popular information interchange format and is similar to CSV (comma-separated values). Most statistical packages and spreadsheet programs would allow export to this format. For example, Open Office's Calc is producing tab-separated files compatible with this program. Select "Save As..." in the "File" menu, specify "Text CSV" format and set checkmark on "Edit filter settings". Then change the field separator to tabulation in the next dialog: tab2dta is a .NET program. It is designed to work in MS Windows, but should be able to run in Linux and Mac provided that Microsoft .NET Framework or it's alternative is installed on these machines. See Mono. The minimum required version of .NET is 2.0. If you have Windows Vista or newer, your system already has compatible version of .NET installed. For Windows XP Microsoft .NET Framework can be acquired from Microsoft's website for free. Assumptions and limitations
Command mode operationThis converter can be invoked from a command line with parameters to work in batch mode and be reused for various purposes.
ExamplesThe following examples demonstrate how input files for the program may look like:
DownloadNo installation is necessary. The application tab2dta.exe is portable. You need only the application file: download tab2dta.exe The most recent version is: 1.0.5193.25553 (compiled 2014.03.21) Author and supporttab2dta was written by Sergiy Radyakin. To contact the author send email to sradyakin/at/worldbank.org. |