Creation date: 05/28/98
Authored by: Karl Ho
Question:
How to convert an SPSS data set into SAS?
Answer:
SAS can read in SPSS data in portable file format. The following SAS program specifies the SPSS engine to read in the portable file:
/* To define a library with SPSS engine pointing to the SPSS */
/* portable file */
libname spsfile spss 'c:\temp\sname.por';
data;
set spsfile.sname;
proc print;
run;
Before that, the SPSS file has to be saved in portable file format. The following SPSS statement performs the task:
EXPORT OUTFILE='c:\sname.por'.
Last updated: 01/18/06 by Karl Ho