Page 1 of 1

Exporting data in SPSS format

Posted: Sun Aug 08, 2021 2:44 am
by PeteD
Hi all

When I try to export a data file in SPSS (.sav) format, I get a message saying the file name contains an illegal character. (See attachment.)

I can export the same file as .csv, and I can save the .omi file without similar errors using the same file name.

And I get the same error message whatever file name I use (even just the single character "a").

Any thoughts?

P.

Re: Exporting data in SPSS format

Posted: Mon Aug 09, 2021 7:57 am
by jonathon
yeah, we need to improve this error message, or handle it better. the error message actually refers to your column names. you've got a column name which isn't supported by the .sav file format.

cheers

jonathon

Re: Exporting data in SPSS format

Posted: Mon Aug 09, 2021 6:00 pm
by MAgojam
Hi, PeteD.

If you used the hyphen as a union in the name of your variable (s) (as you did in the file name), you must remove it or replace it with another character (for example the underline).
In SPSS, the hyphen (and other) is not appreciated in the name of the variables and for this reason, jamovi sends you this message when you try to export the file in the format (.sav).

Cheers,
Maurizio

Re: Exporting data in SPSS format

Posted: Mon Aug 09, 2021 10:17 pm
by PeteD
Yes, the *variable names* were the problem, *not* the file name as the error message stated. There was no issue with the file name.

Easy to fix when the error message points to the correct place! All good now.

P.

Re: Exporting data in SPSS format

Posted: Fri Aug 13, 2021 10:09 pm
by jonathon
> *not* the file name as the error message stated

to be fair, the error message never mentioned the file name :)

this error message is thrown up by the readstat library ... but we need to wrap it and ensure it makes sense in the context of saving a file.

cheers

jonathon