# Converting an SPSS file to a SAS file?

(I'm asking this question for a friend, honest...)

Is there an easy way to convert from an SPSS file to a SAS file, which preserves the formats AND labels? Saving as a POR file gets me the labels (I think) but not the POR file. I tried to save to a SAS7dat file but it didn't work. Thanks,

-
Invite your friend here! – mbq Jan 7 '11 at 11:02
I totally want to, but she's too busy writing academic articles. In general, I wonder how many non-R statisticians we've got on the site. – Tal Galili Jan 7 '11 at 11:48
I think you should change the title to reflect the concern with keeping the formats and labels. Actually saving the file in the other softwares format is trivial, keeping the labels and value labels is the hard part. – Andy W Jan 7 '11 at 20:20
Hi @TalGalili I mostly use SAS but also R – Peter Flom Mar 6 at 1:18

I would just suggest they make the syntax to relabel and reformat the variables. You can use the command, display dictionary. in PASW (aka SPSS) to output the dictionary in a table that you can copy and paste the variable names and labels. Looking at this example of making SAS labels it should be as simple as pasting the text in the appropriate place.