[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: Coping with strings longer than 80 variables
At 10:01 04/08/03 +0100, Nick Cox wrote (in reply to Jolene Skordis:
For what it's worth, I have written a package -intext-, downloadable from
SSC, which reads text files into a Stata data set with as many string
variables as necessary to represent the longest record. The user can then
process these variables further. In Stata, you can find out more about this
package by typing type
As the version of Stata you are using won't allow
string variables longer than 80 characters, you
will need to use a version of Stata which does,
or fix this outside Stata.
I don't think there is another Stata solution, except
possibly by writing a program using -file-.
Some other possibilities are
* doing something in whatever generated this to split
or shorten your variables
* fixing this with Stat-Transfer or DBMS/Copy
* writing a script in Perl, Python or some other
* fixing the problem in a text editor.
ssc desc intext
if you want to view the help file before deciding whether you want to
I hope this helps.
Lecturer in Medical Statistics
Department of Public Health Sciences
King's College London
5th Floor, Capital House
42 Weston Street
London SE1 3QD
Tel: 020 7848 6648 International +44 20 7848 6648
Fax: 020 7848 6620 International +44 20 7848 6620
or 020 7848 6605 International +44 20 7848 6605
Opinions expressed are those of the author, not the institution.
* For searches and help try: