Statalist


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

Re: st: Converting SAS code into Stata code


From   "Scott Merryman" <scott.merryman@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Converting SAS code into Stata code
Date   Wed, 10 Dec 2008 11:13:05 -0600

On Wed, Dec 10, 2008 at 7:34 AM, Hugh Colaco <hmjc66@gmail.com> wrote:
> Dear Statalisters,
>
> I was given some code in SAS and need to translate it into Stata. My
> dataset is in Stata. I have attempted the translation, but would
> appreciate if someone would check it. I don't fully understand the
> files that the author of the SAS code has created (at the beginning of
> the code),

<snip>

> libname tmp1 'c:\original';
>
> data tr1; set tmp1.original1;
> data tr22; set tmp1.original2;
> data tr33; set tmp1.original3;

This copies the data files from the temp1 library to the Work library.

> data tmp1.original0207;
> set tmp1.original0203  tmp1.original04  tmp1.original05  tmp1.original06;

This appends the four SAS data sets in the SET statement.

Scott
*
*   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