*$Rev: 8502 $  2. 
* ITEd notes: 
* As exported, following line causes error, but works with 
*'I find it difficult to say "no" to my friends' 
*or "I find it difficult to say "+'"no"'+" to my friends": 
* VARIABLE LABELS V109 "I find it difficult to say \"no\" to my friends". 
* see String Values in Command Specifications in SPSS Help 
* Can LS export it that way? 
* 
SET UNICODE=ON. 
GET DATA 
 /TYPE=TXT 
 /FILE='survey_123_SPSS_data_file-test.dat' 
 /DELCASE=LINE 
 /DELIMITERS="," 
 /QUALIFIER="'" 
 /ARRANGEMENT=DELIMITED 
 /FIRSTCASE=1 
 /IMPORTCASE=ALL 
 /VARIABLES= 
 V1 A100 
 V2 A100 
 V26 A16 
 V27 DATETIME23.2 
 V109 F5 
 V110 F5 
 V111 F5 
 V131 A283. 
CACHE. 
EXECUTE. 
*Define Variable Properties. 
VARIABLE LABELS V1 "First name". 
VARIABLE LABELS V2 "Last name". 
VARIABLE LABELS V26 "token". 
VARIABLE LABELS V27 "datestamp". 
VARIABLE LABELS V109 "I find it difficult to say \"no\" to my friends". 
 
>Warning # 4461 in column 52.  Text: no 
>An unknown variable name was specified on the VAR LABELS command.  The name 
>and the label will be ignored. 
VARIABLE LABELS V110 "I find it difficult to say "+'"no"'+" to my friends". 
VARIABLE LABELS V111 'I find it difficult to say "no" to my friends'. 
VARIABLE LABELS V131 "Do you have any comments or suggestions regarding this questionnaire?". 
*Define Value labels. 
VALUE LABELS  V109 
 1 "True" 
 100 "False" 
 10000 "Not Applicable". 
VALUE LABELS  V110 
 1 "True" 
 100 "False" 
 10000 "Not Applicable". 
VALUE LABELS  V111 
 1 "True" 
 100 "False" 
 10000 "Not Applicable". 
RENAME VARIABLE ( V1 = firstname ). 
RENAME VARIABLE ( V2 = lastname ). 
RENAME VARIABLE ( V26 = token ). 
RENAME VARIABLE ( V27 = datestamp ). 
RENAME VARIABLE ( V109 = sd5 ). 
RENAME VARIABLE ( V110 = sd6 ). 
RENAME VARIABLE ( V111 = sd7 ). 
RENAME VARIABLE ( V131 = G3 ). 
 
SAVE OUTFILE='survey_123_SPSS_testresult.sav' 
  /COMPRESSED. 
