This project is read-only.
1
Vote

Two issues reading spss files

description

Hi - I am very happy that you have written this application and shared it with us all. Aside from a few issues described below, this functionality is exactly what I need.
 
I have found two reading problems.
 
Issue 1 - the application doesn't recognize some data. See attachement. It can read "good_file.sav", but not "bad_file.sav". "bad_file.sav" is just a subset of "good_file.sav".
 
Issue 2 - the application doesn't line up value labels with the correct variables. I corrected this with the following code change, but my fix is a hack. You'll probably want to get to the real cause of the problem.
 
From SaveFileParser.cs (starting around line 300)
 
        // Get value labels:
        //DR - FIND ME - ADDED ONE TO THE DICTIONARYINDEX TO LINEUP VALUE LABELS TO VARIABLES
        var valueLabelRecord = (from record in metaData.ValueLabelRecords where record.Variables.Contains(dictionaryIndex+1) select record).FirstOrDefault();
        //DR - FIND ME - ORIGINAL
        //var valueLabelRecord = (from record in metaData.ValueLabelRecords where record.Variables.Contains(dictionaryIndex) select record).FirstOrDefault();
 
Any help would be much appreciated.
Thanks, Dave

file attachments

comments