{smcl} {vieweralsosee "opendf_read" "help opendf_read"}{...} {vieweralsosee "opendf_write" "help opendf_write"}{...} {vieweralsosee "opendf_docu" "help opendf_docu"}{...} {vieweralsosee "opendf_csv2dta" "help opendf_csv2dta"}{...} {viewerjumpto "Syntax" "opendf_dta2csv##syntax"}{...} {viewerjumpto "Description" "opendf_dta2csv##description"}{...} {viewerjumpto "Options" "opendf_dta2csv##options"}{...} {viewerjumpto "Examples" "opendf_dta2csv##examples"}{...} help for {cmd:opendf_dta2csv}{right: version 2.0.2 (28 August 2024)} {hline} {phang} {bf:opendf_dta2csv} {hline 2} builds csv files containing meta data for survey data from a Stata dataset (.dta). {p_end} {marker syntax} {title:Syntax} {p 8 17 2} {cmd:opendf_dta2csv} {cmd:}, {output_dir()} [{languages()} {input()}] {synoptset 20 tabbed}{...} {marker options}{synopthdr:options} {synoptline} {synopt :{opth output_dir(string)}}Specifies a directory where to save the csvs. {p_end} {synopt :{opt languages(string)}}Specifies which label and description languages should be written to the csvs. (Default: "all") {p_end} {synopt :{opt input(string)}}Specifies a .dta file that should be loaded and written to csvs. {p_end} {synoptline} {marker description} {title:Description} {pstd} {cmd:opendf_dta2csv} Transforms survey data from dta-format including metadata saved in labels and characteristics to four csvs files (data.csv, dataset.csv, variables.csv and categories.csv) in a specified directory. {p_end} {pstd}{opt output_dir} Indicates the folder where the csv files are saved. {p_end} {pstd}{opt languages} Indicates which languages to keep. Default is "all". {p_end} {pstd}{opt input} Indicates a .dta file that should be loaded and written to csv. Default is the dataset currently loaded in Stata. {p_end} {pstd}data.csv containings the data. {p_end} {pstd}dataset.csv contains the metadata of the dataset {p_end} {pstd}variables.csv contains the metadata of the variables. {p_end} {pstd}categories.csv contains the metadata of the values. {p_end} {pstd}Metadata is taken from the labels and characteristics. {p_end} {marker remarks} {title:Remarks} {pstd} This command from the opendf package is part of the Open Data Format Project bundle, written to assist with survey data files in the open data format(.zip).{p_end} {marker examples} {title:Examples} {phang}Saves the dataset that is currently loaded in 4 csvs in the current working directory. {p_end} {phang}{cmd:. opendf_dta2csv, output_dir("`c(pwd)'")}{p_end} {marker author} {title:Author} {pstd} Tom Hartl ({browse "mailto:thartl@diw.de":thartl@diw.de}), Deutsches Institut für Wirtschaftsforschung Berlin. {marker alsosee} {title:Also see} {psee} {space 2}Help: {help opendf_read}, {help opendf_write}, {help opendf_docu}, {help opendf_csv2dta}, {help opendf_csv2zip}, {help opendf_zip2csv}{p_end}