Statalist


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

RE: st: Stata 11 data format


From   Dan Blanchette <dan.blanchette@duke.edu>
To   statalist@hsphsun2.harvard.edu
Subject   RE: st: Stata 11 data format
Date   Wed, 1 Jul 2009 11:26:36 -0400 (EDT)

Regarding the topic of long variable labels being truncated
when converting data from SAS to Stata:

The newest version of my SAS to Stata data conversion programs:
 savastata (SAS macro that saves a SAS dataset as a Stata data)
 usesas  (Stata package that runs savastata to load a SAS dataset
           into Stata)

as of March 2009 now create notes for variables that have labels
that are longer than 80 characters (max of 256) in SAS. They also just create variable labels with the first 80 characters of the variable label.

The easiest way to get the savastata SAS macro is to just install
-usesas-:
 . ssc install usesas

and it will be installed in:
 ado/plus/s/savastata.sas


Dan Blanchette
Research Associate
Center for Entrepreneurship and Innovation
Duke University's Fuqua School of Business
dan.blanchette@duke.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