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

[no subject]



May be you should go back to the original program which generated the
.csv files in the first place and generate the data in plain ascii
format. Then you can use a .dct files to read the file in whatever format
you want to read it. In stead of keeping the data as
_01,001,00003_
_02,02,004_

you can probably keep it as
_0100100003_
_02 02  004_
Then you can read the data by an .dct file as follows
try.dct
dictionary using "my.txt"{
    _column(1) str2 x %2s
    _column(3) str3 y %3s
    _column(6) str5 z %5s
    }
infile using "try.dct"
Best,
 surajit
*
*   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