On Fri, 25 Nov 2011, Henrique Andrade wrote:
I´m trying to save data into comma-separated values (the csv
files using the Brazilian standard (comma as the decimal point character)
but it is not working. Gretl only saves the text file with point as the
decimal point character.
In order to do this I'm using the following script:
set csv_delim semicolon
set force_decpoint on
set csv_na ""
store "C:\Users\Henrique\Desktop\Teste.csv" --csv --overwrite
--comment="Dados dessazonalizados no Gretl via X-12-Arima"
You don't want "set force_decpoint on" here, but something has
indeed gone wrong: it seems you can't currently save CVS data using
anything other than "." as the decimal character. (I'm not sure when
Since this needs fixing, here's a question: if gretl is running in a
locale where the decimal character is the comma, and user has "Use
locale setting for decimal point" selected under Preferences, should
the default behavior be to save CSV using the decimal comma, or
should that require something like (not supported at present):
"set csv decimal locale".
The point (heh) of the question is that even if a user chooses to
view output with the decimal comma, it's arguable that he/she is
better off saving CSV data in the more portable form, with decimal
point. There should be a choice, but which should be the default?