pspp-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

incompatible encoding error


From: Stacy Hardin
Subject: incompatible encoding error
Date: Thu, 25 Aug 2016 14:30:37 +0000 (UTC)

I am using PSPP version 0.10.2-g654fff on Windows 10. I'm modifying an existing 
.sps file that someone else set up.

I'm getting the error message: warning: Combining files with incompatible 
encodings. String data may not be represented correctly.

I can't see any problems with the data when it is exported and the variables 
are in the order that they are listed, so I'm not sure if this is an issue or 
not.
I'm not sure how much code I need to copy in so I just started at the beginning.



* Encoding: windows-1252.GET FILE= 'O:\2016 Jobs\306016\SPSS\306016.sav'.

DATASET NAME recode_data.

EXECUTE.

******************************************** BEGIN 
RECODE****************************************************

STRING q12b_temp q12c_temp (A100).

COMPUTE q12b_temp=SUBSTR(q12b, 1, 100).

O:\2016 Jobs\306016\SPSS\306016.sps.39: error: COMPUTE: Function invocation
SUBSTR(number, number, number) does not match any known function.  Candidates
are:
SUBSTR(string, number)
SUBSTR(string, number, number).

COMPUTE q12c_temp=SUBSTR(q12c, 1, 100).

O:\2016 Jobs\306016\SPSS\306016.sps.39: error: COMPUTE: Function invocation
SUBSTR(number, number, number) does not match any known function.  Candidates
are:
SUBSTR(string, number)
SUBSTR(string, number, number).

EXECUTE.

DELETE VARIABLES q12b q12c.

RENAME VARIABLES   (q12b_temp q12c_temp = q12b q12c).

COMPUTE resp_no = 1000 + $casenum.

STRING PAD_01 (A1).

STRING PAD_02 (A1).

STRING PAD_03 (A1).

STRING PAD_04 (A44).

EXECUTE.

MATCH FILES FILE=*

warning: Combining files with incompatible encodings. String data may not be
represented correctly.

/KEEP resp_no qa q1b q1c q1d q1e
q1f q1g q2 PAD_01 q3a PAD_02 q3b q3.c q3d q3e
q3f q3g q3h q3i q3j q3k q3l
q3m PAD_03 q3n q3o q3p q3q q3r q4 q5 PAD_04
q7_1 q7_2 q7_3 q7_4 q7_5 q7_6 q7_7
q11 q12b q12c
q13 q13a q14 q1a q6_1 q6_2 q6_3 q6_4 q6_5 q6_6 q6_7 Q9

q10_1 q10_2 q10_3 q10_4 q10_5 q10_6 q10_7 q10_8 q10_9
q15a q6a q8 q10a q12a q15b.

EXECUTE.

SAVE OUTFILE='O:\2016 Jobs\306016\SPSS\306016_RECODE.sav'
 /COMPRESSED.

EXECUTE.

********************************************* END 
RECODE*****************************************************

************************************** BEGIN DATA FILE 
SAVE**********************************************

MATCH FILES FILE=*
 /KEEP resp_no TO q15a.

EXECUTE.

WRITE OUTFILE='O:\2016 Jobs\306016\SPSS\306016.dat'
  TABLE /ALL.

Writing 1 record to `O:\2016 Jobs\306016\SPSS\306016.dat'.

{the variable list in table format shows up here, but I'm not copying it in 
since it's so long}

EXECUTE.

NEW FILE.

DATASET NAME DataSet1 WINDOW=FRONT.

O:\2016 Jobs\306016\SPSS\306016.sps.15-25: error: DATASET CLOSE: There is no
dataset named recode_data.

DATASET CLOSE recode_data.

**************************************** END DATA FILE 
SAVE***********************************************


reply via email to

[Prev in Thread] Current Thread [Next in Thread]