Statalist The Stata Listserver


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

st: RE: import long variable


From   "Maarten Buis" <[email protected]>
To   <[email protected]>
Subject   st: RE: import long variable
Date   Mon, 22 May 2006 13:51:35 +0200

--- Juan Ram�n Garc�a L�pez wrote:
> I have a database in '.txt' format. My database
> has a 18-characters variable (idvar).  <snip> 
> My problem is that Stata approximates the last 
> numbers of  'idvar'. I already know that the 
> problem could be solved importing the variable 
> like "string". Do you know another way to solve
> this problem?

Juan:
The maximum number of digits Stata can take is 16
digits (apart from string variable), so the answer
is no. For more information see: 
http://www.ats.ucla.edu/stat/Stata/faq/longid.htm

HTH,
Maarten

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology 
Vrije Universiteit Amsterdam 
Boelelaan 1081 
1081 HV Amsterdam 
The Netherlands

visiting adress:
Buitenveldertselaan 3 (Metropolitan), room Z214 

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------


*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index