Statalist The Stata Listserver

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

Re: st: Convert Dataset Sas to Stata

From   "Svend Juul" <SJ@SOCI.AU.DK>
To   <>
Subject   Re: st: Convert Dataset Sas to Stata
Date   Sat, 17 Feb 2007 10:44:04 +0100

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

*   For searches and help try:

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