Hi Robert,
thank you for taking the time to explain this to me - following your
instructions did the trick. I will try to report these problems to the
LimeSurvey developers as well. Maybe they are interested in making
exports to PSPP easier, too. I guess there is no good reason to break
the VARIABLE LABLES command over more than one line, or is there?
Holger
Am 25.04.2013 08:31, schrieb Robert Prout:
Hi,
I use LimeSurvey and SPSS everyday at work, and I use PSPP at home.
I have managed to create a SPSS .sav file from the LimeSurvey syntax
and .dat file using PSPP. I am using Win7 64 bit, and PSPP (64bit)
0.7.10-g29c145
Here is what I did:
First delete the first two lines on the SPSS syntax file that was
generated by LimeSurvey. The lines of code should look something like
this:
*$Rev: 10925 $ 2.
SET UNICODE=ON.
The syntax file should now start with the GET DATA command. The FILE
subcommand (under GET DATA) needs to have the directory added to the
.dat file name. For example:
/FILE='C:\current\survey_49991_SPSS_data_file.dat'
The other thing that needs updating are the VARIABLE LABELS commands
in the syntax file. The syntax file that is generated by LimeSurvey
tends to break the VARIABLE LABELS commands over a number of lines.
PSPP will not run the command in this format. PSPP will only run the
command if the VARIABLE LABEL commands are each on one line. For example:
VARIABLE LABELS Var1 "My first variable".
VARIABLE LABELS Var2 "My second variable".
VARIABLE LABELS Var3 "My third variable".
etc...
There will be a VARIABLE LABEL command for each of the items in your
survey, so there may be a number to correct. The label in the
quotation marks appears pink in colour in the PSPP syntax editor when
the command is well formed, and each command is on one line.
Hope that helps,
Cheers,
RP
On 25 April 2013 15:33, Ben Pfaff <b...@cs.stanford.edu
<mailto:b...@cs.stanford.edu>> wrote:
On Tue, Apr 23, 2013 at 08:36:13PM +0200, Dr. Holger Handstein wrote:
> Also, I've attached the syntax file. Maybe this helps?
The syntax file begins with a UTF-8 "byte order mark". PSPP didn't
handle that correctly, but I've now pushed a fix to the repository.
_______________________________________________
Pspp-users mailing list
Pspp-users@gnu.org <mailto:Pspp-users@gnu.org>
https://lists.gnu.org/mailman/listinfo/pspp-users
E-Mail ist virenfrei.
Von AVG überprüft - www.avg.de <http://www.avg.de>
Version: 2013.0.3272 / Virendatenbank: 3162/6270 - Ausgabedatum:
24.04.2013
--
Diplom-Journalist
Giesebrechtstraße 57
45144 Essen
_______________________________________________
Pspp-users mailing list
Pspp-users@gnu.org
https://lists.gnu.org/mailman/listinfo/pspp-users