Skip to content

read.spss warning: unrecognized record type??

4 messages · Michael Jerosch-Herold, Peter Dalgaard, Raphael Schneider +1 more

#
When using read.spss (library: 'foreign') I get the following warning
message:

Warning message: 
E:/R4win/mesamri.sav: Unrecognized record type 7, subtype 13
encountered in system file. 

I don't see anything wrong with record #7 in the database I am trying
to read in, but I suspect that the warning message does not refer to a
specific record, but a "variable" type. Is this correct? And what does
"subtype 13" mean?

I basically have a data table with records (cases) in rows, and various
variables for each record/case in the columns. Again, I suspect that I
am using "record" in a different sense then meant by the above warning
message.

Based on this warning, is "record type 7" discarded when the data are
read in?

Thank you in advance for shedding some light on this!

Michael Jerosch-Herold
#
"Michael Jerosch-Herold" <jeroschh at ohsu.edu> writes:
Well foreign doesn't know either, and that's the problem... Most
likely you have one of your SPSS variables coded in an unusual manner
(do they all come though alright?), or it is something else in the
meta-info that foreign cannot interpret.
Yes. System files are typically organised in "records" which are not
the actual data records but pieces of meta-information. As in (I'm
just making this up, read the sources for the exact definitions)

type=1 subtype=1 length=22 data1="My very important data"

which is compactly stored as (<..> meaning "binary coding of")

<1><1><22>My very...

so that on reading, the program sees the first two bytes and then
knows that this is a "main header" and that it will be followed by a
2-byte length and then as many characters as the length indicates.

There are other record types for individual variable names, variable
types, variable labels, value labels for categorical data, etc...
Possibly, but you have the data to check and we don't....

  
    
#
On Friday 27 August 2004 02:55, Michael Jerosch-Herold wrote:
I get the same message but it seems that all data is read correctly. My 
impression is that this message shows up only reading datasets stored with 
SPSS12. At the moment I have no dataset where I know exactly this was stored 
using a SPSS version below 12.

Raphael
#
On Fri, 27 Aug 2004, Raphael Schneider wrote:

            
I have had the same experience. Since the computer where I use read.spss
doesn't have any development tools on it I haven't got around to looking
at what is actually happening.

The difficulty with read.spss is that the format is not publically
documented (in fact, most of the formats read by foreign are not
documented or are incompletely or inaccurately documented -- Stata gets an
honorable mention as one of the exceptions). All read.spss can do is
ignore anything it doesn't understand, and check that the rest of the file
makes sense.


	-thomas