Quantcast
Channel: Topics in Category: Can I do this with LimeSurvey? - LimeSurvey forums
Viewing all articles
Browse latest Browse all 17529

SPSS export Variable renaming problem - by: tomW

$
0
0
I am exporting my survey from limesurvey 2.00 to SPSS 20.0. The variables rename the standard SPSS V1,V2 etc and are not renamed but the data is imported. After checking the .sps file it appears that the command RENAME VARIABLE is used rather than RENAME VARIABLES (plural) - it remained greyed out in the singular. I have run the program both with and without the renamed variables. The spss file is as below.

Can anyone help please. Thanks

*$Rev: 121017 $ all 2.
SET UNICODE=ON.
SHOW LOCALE.
PRESERVE LOCALE.
SET LOCALE='en_UK'.
GET DATA
/TYPE=TXT
/FILE='survey_138727_SPSS_data_file.dat'
/DELCASE=LINE
/DELIMITERS=","
/QUALIFIER="'"
/ARRANGEMENT=DELIMITED
/FIRSTCASE=1
/IMPORTCASE=ALL
/VARIABLES=
V1 F7
V2 A16
V3 DATETIME23.2
V5 A19
V6 F1
V7 F1
V8 F2.
CACHE.
EXECUTE.
*Define Variable Properties.
VARIABLE LABELS V1 "id".
VARIABLE LABELS V2 "token".
VARIABLE LABELS V3 "submitdate".
VARIABLE LABELS V5 "startlanguage".
VARIABLE LABELS V6 "Does SPSS work with limesurvey".
VARIABLE LABELS V7 "".
VARIABLE LABELS V8 "".
*Define Value labels.
VALUE LABELS V6
1 "Yes"
2 "No".
VALUE LABELS V8
01 "Strongly disagree"
02 "Disagree"
03 "Slightly disagree"
04 "Undecided"
05 "Slightly agree"
06 "Agree"
07 "Strongly agree".
VARIABLE LEVEL V7(SCALE).
RENAME VARIABLES ( V1 = id ).
RENAME VARIABLES ( V2 = token ).
RENAME VARIABLES ( V3 = submitdate ).
RENAME VARIABLES ( V5 = startlanguage ).
RENAME VARIABLES ( V6 = G1YesNo ).
RENAME VARIABLES ( V7 = G1Likert ).
RENAME VARIABLES ( V8 = G1_Likert2 ).
RESTORE LOCALE.

The output log is:

GET DATA
/TYPE=TXT
/FILE='/Users/Tom/Public/limesurveytest/survey_138727_SPSS_data_file.dat'
/DELCASE=LINE
/DELIMITERS=","
/QUALIFIER="'"
/ARRANGEMENT=DELIMITED
/FIRSTCASE=1
/IMPORTCASE=ALL
/VARIABLES=
V1 F7
V2 A16
V3 DATETIME23.2
V5 A19
V6 F1
V7 F1
V8 F2.

Viewing all articles
Browse latest Browse all 17529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>