Date: Sun, 11 Sep 2005 20:56:55 -0400
Reply-To: Raynald Levesque <rlevesque@videotron.ca>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Raynald Levesque <rlevesque@videotron.ca>
Subject: Re: How to convert SAS codes to SPSS codes
In-Reply-To: <5.1.0.14.2.20050908150825.06f39b40@pop.mindspring.com>
Content-type: text/plain; charset=us-ascii
Hi Shakti,
The book "SPSS Programming and Data Management" contains a chapter on tips
to convert SAS code to SPSS syntax.
You may download a free pdf version of the book from
http://www.spss.com/spss/data_management_book.htm
HTH
Raynald Levesque Raynald@spsstools.net
Visit my SPSS site: http://www.spsstools.net
-----Original Message-----
From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU]On Behalf Of
Richard Ristow
Sent: September 8, 2005 3:32 PM
To: SPSSX-L@LISTSERV.UGA.EDU
Subject: Re: How to convert SAS codes to SPSS codes
At 09:39 AM 9/1/2005, Shakti Sankhla wrote:
>I have some SAS codes which I need to convert to SPSS. Are there any
>tools that could do some conversion to help conversion?
I'm afraid there aren't, and aren't likely to be. The two are
complicated languages, and don't have completely equivalent semantics.
However,
>If I have to manually convert, are there any process map to guide?
Not really, but there are two main pieces:
A. Data manipulation: SAS DATA steps and PROC SQL, SPSS transformation
programs and INPUT PROGRAMs.
Here, MOST of what can be done in one, can be done in the other.
Converting from SAS, you'll hit some specific points where SPSS is
weaker, or handles things very differently from how SAS does. As
examples, by no means exhaustive,
. Of course, user-defined formats in SAS become, generally, VALUE
LABELS in SPSS
. Certain uses of user-defined formats, for example displaying a range
of values with the same rendition, require RECODE or similar tools in
SPSS
. SAS can have arrays whose members are not contiguous, and arrays with
more than one dimension. Neither will translate directly to SPSS.
. Some uses of PROC SQL, including many-to-many matches, are very
difficult to emulate in SPSS.
B. Statistical and reporting code: PROC steps in SAS, procedure
statements in SPSS.
Here, there's nothing possible but studying what you're doing in SAS
and seeing how to get the same effects in SPSS. At the high end of
sophistication, I think that SAS can do analyses that are awkward or
impossible in SPSS; at the least, require add-on modules.
..............
This is very incomplete, but I hope it can start to guide your
thinking. Post again, with specifics of the SAS code you want to
convert.