Statalist The Stata Listserver


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

Re: st: from stata to SAS


From   juzhi wang <[email protected]>
To   [email protected]
Subject   Re: st: from stata to SAS
Date   Fri, 12 Jan 2007 09:03:33 -0800 (PST)

thanks, this is good because the machine that my stata data sets stay has only Stata application and has not SAS application.

Juzhi
----- Original Message ----
From: Tim Wade <[email protected]>
To: [email protected]
Sent: Friday, January 12, 2007 11:32:51 AM
Subject: Re: st: from stata to SAS


this may be easy enough to just do with outsheet and proc import,
avoiding the Excel step:

. sysuse auto.dta
(1978 Automobile Data)

. outsheet using auto.txt

In SAS:

proc import datafile="C:\data\auto.txt"
      out=auto
      dbms=tab
      replace;
      getnames=yes;
run;






On 1/11/07, juzhi wang <[email protected]> wrote:
> Hello Everybody:
>
> I am a SAS user. I do not know anything about Stata. But I need to import Stata data sets to SAS. What I need to do is to export the Stata into Excel and from Excel to SAS. Could anybody in the list provide a block of code to help me export the Stata dataset to Excel?
>
> Thanking you very much in advance,
> Juzhi
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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