Welcome to the LimeSurvey Community Forum

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

Extended Version – LimeSurvey 7 to SPSS Ranking Converter

More
52 minutes ago #275432 by livanov
The extended version of the LimeSurvey 7 to SPSS Ranking Converter builds upon the original converter and introduces several improvements to make the entire conversion process fully automated and more reliable.

Improvements and additional functionality

Automatic detection of input files

Automatically identifies the LimeSurvey SPSS syntax file (.sps) and the corresponding data file (.dat) in the working folder, regardless of their filenames. No manual file selection or filename editing is required.

Automatic variable format adjustment

Automatically changes the format of the original JSON base variables to string format (A1000), ensuring that the complete JSON data can be read and processed correctly.

Preservation of original JSON data

Retains the original JSON data in the base variables while extracting and distributing the individual ranking values into separate SPSS variables.

Automatic ranking variable format adjustment

Automatically sets all individual ranking variables to numeric format (F8.0), ensuring that the extracted ranking values are correctly stored as numeric data.

Automatic SPSS syntax modification and execution

Modifies the original LimeSurvey SPSS syntax file to reference the corrected data file and executes the modified syntax automatically in SPSS.

Automatic SAV file creation

Automatically saves the final processed dataset as an SPSS .sav file, using the original dataset name.

Automatic cleanup of temporary files

Deletes the intermediate files generated during the conversion process after the final SAV file has been successfully created. The original LimeSurvey export files remain unchanged.

Current limitation – Value Labels

The converter currently extracts the numeric codes of the ranked items and distributes them correctly into separate ranking variables. However, it does not yet assign Value Labels containing the corresponding item text to these variables.

This is because the current LimeSurvey 7 SPSS export does not include the necessary value label definitions for ranking questions.

LimeSurvey support has confirmed that they were able to reproduce the issue and that a fix is planned for an upcoming release. According to their response, the updated SPSS export will generate a separate variable for each rank, populate it with the corresponding ranked item, and assign the item text as its label.

Once this fix is available, the converter can be tested against the updated LimeSurvey export to determine whether any additional processing is still necessary.

Summary

The extended converter provides a fully automated solution for processing LimeSurvey 7 ranking questions in SPSS. It eliminates the need for manual file handling, syntax modifications, and variable format adjustments, while preserving the original exported data.

Please Log in to join the conversation.

Moderators: tpartner, holch

Lime-years ahead

Online-surveys for every purse and purpose