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

st: extract a subset of numbers from a bigger number


From   Alejandro "Ria�o" <[email protected]>
To   [email protected]
Subject   st: extract a subset of numbers from a bigger number
Date   Wed, 15 Sep 2004 10:30:27 -0700 (PDT)

Hello Statalisters,

How can I extract the last 5 digits a 9-digit number
(say a social security number) creating a new variable
?

i.e.

X                  newvar
999912345 --->     12345


thanks


	
		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 
*
*   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