2 export — Overview of exporting data from Stata
jdbc
◦ Java Database Connectivity (JDBC) is an application programming interface for the programming
language Java. The jdbc command allows you to connect to, load data from, insert data into, and
execute queries on a database using JDBC.
◦ See [D] jdbc.
odbc
◦ ODBC, an acronym for Open DataBase Connectivity, is a standard for exchanging data between
programs. Stata supports the ODBC standard for exporting data via the odbc command and can
write to any ODBC data source on your computer.
◦ See [D] odbc.
outfile
◦ outfile creates text-format datasets.
◦ The data can be written in space-separated or comma-separated format.
◦ Alternatively, the data can be written in fixed-column format.
◦ See [D] outfile.
export sasxport5 and export sasxport8
◦ export sasxport5 saves SAS XPORT Version 5 Transport format files.
◦ export sasxport5 can also write value-label information to a formats.xpf XPORT file.
◦ export sasxport8 saves SAS XPORT Version 8 Transport format files.
◦ export sasxport8 can also write value-label information to a SAS command (.sas) file.
◦ See [D] import sasxport5 and [D] import sasxport8.
export spss
◦ export spss saves an IBM SPSS Statistics (.sav) file.
◦ See [D] import spss.
export dbase
◦ export dbase saves version IV dBase (.dbf) files.
◦ See [D] import dbase.