Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: how to read .sas7bdat in Stata

From   "Lynn Lee" <>
To   <>
Subject   RE: st: how to read .sas7bdat in Stata
Date   Thu, 16 Aug 2012 19:38:15 -0700

Thank you,Nick.

Best Regards,
Lynn Lee

-----Original Message-----
[] On Behalf Of Nick Cox
Sent: Thursday, August 16, 2012 2:47 AM
Subject: Re: st: how to read .sas7bdat in Stata

The documentation for -usesas- (SSC) does explain (as you cite) that
being able to run SAS is essential, so trying to run it in Stata in
your situation just will not work.

I have never used SAS but a simple Google brings up suggestions.


On Fri, Aug 17, 2012 at 12:10 AM, Lynn <> wrote:

> I am currently using "usesas" command to try to read .sas7bdat data set in
> Stata 11. But the Stata told me the following:
> The usesas command uses the savastata SAS macro to load the SAS dataset
> memory.
> Large datasets may take a few minutes.
> Edit your sasexe.ado file to set the location *
> of your SAS executable file. *
> C:\stata11\ado\plus\s\sasexe.ado
> *! sasexe Version 2.3 11Apr2012
> *! the carolina population center, unc-ch
>  edit sasexe.ado (click, to edit the sasexe.ado file, remember to save
> done.)
>  usesas requires that you have a working version of SAS on this computer.
> r(499);
> I changed the location in sasexe.ado file to where I save the downloaded
> ".sas7bdat" data sets. But the Stata still can not read the SAS data. What
> downloaded from website are all data sets in format of ".sas7bdat" . My
> computer does not have SAS software. I also downloaded from
> website, but looks like this file is for SAS software, not for Stata
> software.
> Now, I am stuck here. I appreciate for any suggestion about reading
>  data sets in Stata.

*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index