-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: variables with DATE and DATETIME formats not read correctly in PSPP #211
Comments
Hi, yes we both use the same specification that you linked. However, there are sometimes small differences (and bugs) in the implementations since the code bases are completely independent. A common issue with formats is that new versions of SPSS sometimes add new formats, and ReadStat and PSPP have to (separately) add support for them. Based on the link it looks like PSPP somehow removed support for the So maybe try supplying |
Yes, indeed that was the issue. Both DATETIME17 and DATETIME20 work, so I choose the last one, and DATE11. That works in both PSPP and SPSS. thanks! |
Glad to hear it. I have added some useful defaults to prevent these situations in the future. |
just tested the latest code on dev and the defaults work great (meaning I can pass DATE and DATETIME again) |
It has been reported here that if one writes a sav file with variables with format DATE and DATETIME, those are not read correctly in PSPP (read as plain numbers) with some error messages about wrong print format. Interestingly TIME is is read correctly.
However the same file is read correctly in SPSS and the variables are formatted as expected.
At a first glance this looks to me like an issue in PSPP, however if I understood correctly both PSPP and Readstat use the same file specification (this one?) and therefore I would assume that what Readstat writes should be compatible with PSPP?
What's your opinion on the topic?
The text was updated successfully, but these errors were encountered: