[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: SAS SAS7BDAT file into Stata9

From   "Anders Alexandersson" <>
Subject   Re: st: SAS SAS7BDAT file into Stata9
Date   Fri, 19 Oct 2007 09:06:53 -0400

Steve <> asked:
> What is the easiest way to get a SAS7BDAT file into Stata9?

Abdel Rahmen El Lahga suggested StatTransfer. Steve responded that he
has StatTransfer 7 but that "this won't do it". Christine Leonard
suggested the SAS macro %usesas but Steve responded that he does not
have SAS. Abdel Rahmen and Christine gave reasonable suggestions to a
vague problem description.

Steve, if you can read the SAS file in StatTransfer 7 (or in
DBMS/Copy, if you have it) --you didn't tell-- then you should be able
to save the SAS dataset into a format that Stata understands, for
example and older Stata dataset, and then use Stata 9 to read this
data and save it as a Stata 9 dataset. Another option is to use a
recent version of SPSS, if you have this, to read the SAS dataset into
SPSS and then save it as a Stata dataset that your Stata 9 can read.
Yet another option is to install R and use its foreign package for the
conversion but it is not as easy, if you have never used R before.

Anders Alexandersson
*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index