Date: Wed, 20 Feb 2008 17:27:41 -0500
Reply-To: Peter Flom <peterflomconsulting@mindspring.com>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Peter Flom <peterflomconsulting@MINDSPRING.COM>
Subject: Re: SPSS to SAS - New to this List
Content-Type: text/plain; charset=UTF-8
"Feinstein, Zachary" <ZFeinstein@HARRISINTERACTIVE.COM> wrote
>What is the easiest way to read in a SAS data file in a way that is
>comparable to SPSS.
>
>With SPSS I could say something like GET FILE = "C:\temp2\file3.sav".
>
>and all is done.
If you have a SAS data file already, you can just do;
data today;
set 'c:\mydir\myfile.sas7bdat';
run;
and that's it
You can also import files in various ways, most easily (to me, anyway) with the IMPORT in the DATA tab, which works great if your file is already in good shape.
Peter
|