Skip to content
Prev 244131 / 398506 Next

Please help with write.foreign(SPSS)

On Dec 7, 2010, at 09:19 , Jim Lemon wrote:

            
That makes OK sense to me, the object is to _write_ an spss file in the end. write.foreign writes a plain text .dat file plus an spss "syntax file" which supposedly should read the file and generate the spss file. 

What looks odd to me is that res.dat appears to be written t z:/daten/ but read from k:,
so I wonder whether spss is actually finding the same file?

It is not particularly odd that a direct import of res.dat comes out without variable names and value labels, because that information is contained in res.sps.

A closer look at k:res.dat (as a plain text file) and any messages from running res.sps could be illuminating.