Skip to content
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

long string variable split when reading in SPSS #236

Open
ofajardo opened this issue Apr 2, 2021 · 4 comments
Open

long string variable split when reading in SPSS #236

ofajardo opened this issue Apr 2, 2021 · 4 comments

Comments

@ofajardo
Copy link

ofajardo commented Apr 2, 2021

hi

When writing a sav SPSS file with Readstat containing long string variables (long_readstat.sav), Readstat reads them correctly, however SPSS splits it (LongString2, "V2_A1", "V2_A2", "V2_A3"), this does not happen if the name of the variable is shorter (LongStr instead of LongString2).
For comparison the same content but written with SPSS (long_spss.sav) it opens correctly both in SPSS and Readstat.

original reports: Roche/pyreadstat#119
Roche/pyreadstat#118

longstring.zip

@mtr
Copy link

mtr commented Jun 10, 2021

I experience the same problem. Can someone please have a look at this?

@evanmiller
Copy link
Contributor

Interesting. It looks like SPSS is using internal names LONGS0, LONGS1, LONGS2 rather than V2_A etc. It looks like the variable-naming algorithm needs to be updated.

@ofajardo
Copy link
Author

solved in version 1.1.9

@ofajardo
Copy link
Author

ofajardo commented Feb 23, 2023

I was made aware that the issue is gone when reading the file with Pyreadstat, however, the issue is still there when reading the file with SPSS.
Actually I forgot about this difference, now I notice that even I wrote at the first description of this issue that Readstat reads correctly but SPSS does not.

@ofajardo ofajardo reopened this Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants