Good afternoon everyone,
I would like to ask: what is the best way to export a dataset to CSV in Stata so that numeric values are saved in the format (e.g., 320453000,30), using a comma as the decimal separator (not a dot I made a mistake in the title), and ensuring that values are not rounded during export?
I'm looking for the most reliable syntax or method to preserve this formatting during the export process.
Moreover, is it possible—when exporting to CSV—to specify which variables are strings and which are numeric? I need to export a dataset containing both types, and I’d like to avoid formatting issues (e.g., quotation marks in strings, incorrect decimal handling, etc.).
I'm familiar with several options used during import—such as encoding("utf-8"), binquotes(strict), parselocale(it_IT), or decimalseparator(,)—but these don't seem to be supported during export.
Any help or best practices would be greatly appreciated.
Best regards,
I would like to ask: what is the best way to export a dataset to CSV in Stata so that numeric values are saved in the format (e.g., 320453000,30), using a comma as the decimal separator (not a dot I made a mistake in the title), and ensuring that values are not rounded during export?
I'm looking for the most reliable syntax or method to preserve this formatting during the export process.
Moreover, is it possible—when exporting to CSV—to specify which variables are strings and which are numeric? I need to export a dataset containing both types, and I’d like to avoid formatting issues (e.g., quotation marks in strings, incorrect decimal handling, etc.).
I'm familiar with several options used during import—such as encoding("utf-8"), binquotes(strict), parselocale(it_IT), or decimalseparator(,)—but these don't seem to be supported during export.
Any help or best practices would be greatly appreciated.
Best regards,

. I guess the reason is that it is sufficiently obscure that it is not used somewhere else, and at the same time common enough that most end users will not be scared by it and know where to find it on their key board. A tab would lead to a lot of confusion among many end users as they don't see it.
Comment