Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: ss# imports as scientific notation


From   "Michael Blasnik" <michael.blasnik@verizon.net>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Re: ss# imports as scientific notation
Date   Mon, 07 Mar 2005 13:16:04 -0500

I would first try:

format ssn %9.0f

The problem may just be the display format. If you find that you've lost precision (in the last digit) and it is stored as a float, you could try the double option to insheet.

Michael Blasnik
michael.blasnik@verizon.net

----- Original Message ----- From: "Robin Newberry" <wnewber@clemson.edu>
To: <statalist@hsphsun2.harvard.edu>
Sent: Monday, March 07, 2005 1:11 PM
Subject: st: ss# imports as scientific notation



For some reason when I was importing a comma delimited dataset into Stata it converted all of the SS# info into scientific notation. The #'s weren't in standard ss# format (999-99-9999) but unformatted (999999999), so the end result was 9.99e+08. Currently the filed is in %10.0g format - is there a way to convert these back to a non numeric field?
--
Robin
--------------------------------------------------------------
W. Robert Newberry, IV CIH, CHMM
Chief Environmental Health and Safety Officer
Clemson University
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index