Line for the server...
***********
clear*
input str20 mystring
"acquired by alcatel"
"acquired by cisco"
end
g newstring=word( mystring,1)
l
***********
HTH
Martin
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Sara Brighi
Sent: Sunday, January 18, 2009 5:47 PM
To: [email protected]
Subject: st: problems with abbrev()
I have come across a problem. I have a string variable made up of 2338
observations. These observations differ in "private", "public",
"defunct" and "acquired...."; but the "acquired" observations ever
specify sth more (for instance "acquired by alcatel", or "acquired by
cysco"..ecc). I need to use abbrev() in order to have only "acquired".
How can I use it?
Thank you very much!
Sara
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/