
ReadStat is a command-line tool and MIT-licensed C library for reading files from popular stats packages. Supported data formats include:
- SAS: SAS7BDAT (binary file) and XPORT (transport file) - Stata: DTA (binary file) versions 104-119 - SPSS: POR (portable file), SAV (binary file), and ZSAV (compressed binary)
Supported metadata formats include:
- SAS: SAS7BCAT (catalog file) and .sas (command file) - Stata: .dct (dictionary file) - SPSS: .sps (command file)
There is also write support for all the data formats, but not the metadata formats.
This package contains the command line tools: readstat, and extract_metadata.