Patrick wrote:
I generated one dataset in SAS and I would like to work in Stata. I
have Stat/Transfers 8.2 and I did the change. I used describe to see
the data and for my surprise they were in format string (all).
...
My question is: which is the best solution to convert dateset to SAS
to Stata (more easy) that maintain the format of information - for
example 05100 is 05100 and not 5100. I never used stat/transfers but
in the first time the product of change is not good.
---------------------------------------------------------------------
05100 is a string; the corresponding numeric value is 5100. This is
the case in Stata, and I am pretty sure that it is in SAS, too.
You may, however, display leading zeros in lists:
format varname %05.0f
Hope this helps
Svend
________________________________________________________
Svend Juul
Institut for Folkesundhed, Afdeling for Epidemiologi
(Institute of Public Health, Department of Epidemiology)
Vennelyst Boulevard 6
DK-8000 Aarhus C, Denmark
Phone, work: +45 8942 6090
Phone, home: +45 8693 7796
Fax: +45 8613 1580
E-mail: [email protected]
_________________________________________________________
*
* 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/