Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

SPSS data and syntax import issue on MacOS

  • blocka
  • blocka's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
3 years 5 months ago #207888 by blocka
When I try to import my data file, I get these error:

Failure to open file: ... _SPSS_data_file.dat
This command is not valid before a working file has been defined
This command dis not permitted before the beginning of the file definition.

etc....

This is on MacOS, and I've updated the syntax file to point to the path for my data file, like:
/FILE=Folder1/Folder2/SPSS_data_file.dat

Any one have some suggestions?
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 5 months ago #207891 by Joffm
Replied by Joffm on topic SPSS data and syntax import issue on MacOS
This is an issue of Mac OS Catalina and SPSS.
Read here
www.ibm.com/support/pages/working-ibm-sp...stics-macos-catalina

Data files
Due to changes in the way macOS Catalina handles new file/directory access, IBM SPSS Statistics is not able to open data files using the file chooser or the GET FILE command.

Note: This issue is resolved starting with IBM SPSS Statistics 26.0 Fix Pack 1 (available end of October, 2019).


How I would work around it?
Export data as *.csv and spss.
Import the *.csv by "File / Read text" (I don't know exactly; I have a German GUI of SPSS)
Use the syntax file of the SPSS export to adapt and set the VARIABLE and VALUE LABELS.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
3 years 4 months ago #208284 by tixeon
Replied by tixeon on topic SPSS data and syntax import issue on MacOS
I had this same problem on Windows. I tried updating the path but it never worked. In the end I got it to work by pasting the *.dat file into the SPSS directory (IBM>SPSS>Statistics>24). (the syntax file can sit anywhere).
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose