Statalist


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

Re: st: RE: SAS Transport


From   Anders Alexandersson <andersalex@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: SAS Transport
Date   Mon, 30 Mar 2009 15:14:35 -0400

Ben, another solution if you have SAS but not Stat/Transfer installed
and working on your computer is to use Dan Blanchette's program
-usesas-.
Type -findit -usesas- from within Stata.
His web page for the program is at
http://www.cpc.unc.edu/services/computer/presentations/sas_to_stata/usesas.html.

Anders Alexandersson
andersalex@gmail.com

On Mon, Mar 30, 2009 at 2:06 PM, E. Paul Wileyto <epw@mail.med.upenn.edu> wrote:
> If you have SAS 9.2 available, it will import files from Stata v10, and
> preserve labels.  I thought SAS had bought dbms copy to kill it, but it
> seems that SAS has incorporated parts of it, even though it does not support
> the stand-alone dbms copy very well.
>
> SPSS reads and writes both Stata and SAS files, preserving labels.
>
> Paul
>
> Newson, Roger B wrote:
>>
>> To convert SAS data sets to Stata datasets, I personally use
>> Stat/Transfer, whose website is at
>> http://www.stattransfer.com/
>> and which has the advantage (over DBMS/Copy) that it can be called as a
>> DOS command. The -stcmd- package can call Stat/Transfer from within Stata,
>> and can be downloaded from SSC using the -ssc- command. However, Ben (or
>> somebody) would have to find the money to pay for Stat/Transfer.
>>
>> I hope this helps.
>>
>> Best wishes
>>
>> Roger
>>
>>
>> Roger B Newson BSc MSc DPhil
>> Lecturer in Medical Statistics
>> Respiratory Epidemiology and Public Health Group
>> National Heart and Lung Institute
>> Imperial College London
>> Royal Brompton Campus
>> Room 33, Emmanuel Kaye Building
>> 1B Manresa Road
>> London SW3 6LR
>> UNITED KINGDOM
>> Tel: +44 (0)20 7352 8121 ext 3381
>> Fax: +44 (0)20 7351 8322
>> Email: r.newson@imperial.ac.uk Web page:
>> http://www.imperial.ac.uk/nhli/r.newson/
>> Departmental Web page:
>>
>> http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/popgenetics/reph/
>>
>> Opinions expressed are those of the author, not of the institution.
>>
>> -----Original Message-----
>> From: owner-statalist@hsphsun2.harvard.edu
>> [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Benjamin Allaire
>> Sent: 30 March 2009 17:49
>> To: statalist@hsphsun2.harvard.edu
>> Subject: st: SAS Transport
>>
>> I know that fdause cannot read SAS labels.
>>
>> Is there any other way to
>> transform SAS data into Stata data while preserving labels?  I have an
>> older version of DBMS copy that I could use if necessary.
>>
>> thanks,
>> Ben
>
> --
> E. Paul Wileyto, Ph.D.
> Assistant Professor of Biostatistics
> Tobacco Use Research Center
> School of Medicine, U. of Pennsylvania
> 3535 Market Street, Suite 4100
> Philadelphia, PA  19104-3309
>
> 215-746-7147
> Fax: 215-746-7140
> epw@mail.med.upenn.edu

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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