Date: Thu, 2 May 2002 15:43:56 -0500
Reply-To: Nancy A Rowe <narowe@omega.uta.edu>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Nancy A Rowe <narowe@omega.uta.edu>
Subject: Re: SAS-->SPSS file conversion?
In-Reply-To: <77E7D879E3B9AC43A857CCFB8A6607020136E5E4@pfawmail.pfaw.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Thu, 2 May 2002, Dwight Holmes wrote:
Bring the dataset up in SAS and then use code like the following to
convert it to a SAS portable file:
libname tranfile xport 'c:\my
documents\consult\price01\f040802\saspor2.prt';
proc copy in=work out=tranfile memtype=data;
select bothmrg;
run;
Then in SPSS use code like:
get sas data='c:\my documents\consult\price01\f040802\saspor2.prt'.
execute.
The stuff after the 'c:...' is the path of the portable file and it
assumes the datasets name in SAS is bothmrg. This works in most versions
of SAS and SPSS.
Nancy-
> I've got a SAS (.sd2) file. Is there a way to convert it to an SPSS file?
> Unfortunately, I'm using SPSS 8.0. Thanks!
>
> ___________________________________
> Dwight R. Holmes
> Education Policy Manager
> People for the American Way Foundation
> 2000 M Street NW, Suite 400
> Washington DC 20036
> (202) 467-4999 Fax (202) 293-2672
> www.pfaw.org
>