Statalist The Stata Listserver


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

st: RE: cut string variables


From   "Alex Ogan" <[email protected]>
To   <[email protected]>
Subject   st: RE: cut string variables
Date   Mon, 22 May 2006 09:44:34 -0400

replace varname = substr(varname,1,50)
compress varname

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of susanne
neckermann
Sent: Monday, May 22, 2006 9:42 AM
To: [email protected]
Subject: st: cut string variables

Hello,
I cannot open a data set in my intercooled Stata version because one of
the 
variables is a string with 102 characters and intercooled Stata only
allows 
for 80.
I can open the data set at a friend's computer who has the full version
of 
stata. But we have not found out, what the command is to cut the length
of 
this particular string. so that we can change the data set and I can
work 
with it on my computer.
It would be o.k., if only the first 50 characters or so remain.

Can you help?
Thank you very much.
Greetings from Switzerland,
Susanne


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


This message is intended solely for the designated recipient(s). It may contain confidential or proprietary information and may be subject to confidentiality protections. If you are not a designated recipient, you may not review, copy, or distribute this message. If you receive this in error, please notify the sender by reply e-mail and delete this message. 

Arrowstreet Capital, L.P. is an Equal Opportunity Employer. 



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