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

st: Infile Errors


From   "Alexander Nervedi" <[email protected]>
To   [email protected]
Subject   st: Infile Errors
Date   Tue, 07 Jun 2005 03:19:10 +0000

Hi Statalist

I am having issues with using infile.

I have data in fixed width format that looks like:

KA0013217HA01 0 0 0 0 1
KA0013250HA01 0 0 0 0 1
KA0013283HA01 0 0 0 0 0

I have a dictionary file called Alex.dct that looks like:

infile dictionary using Alex.RAW{

_column(1) str card_code %1s "Schedule Code"
_column(2) str village_code %1s "Village Identifier"
_column(2) int pcode %1f "Person Code"

...

}

When I "infile" in stata i get the following error:

. infile using Alex.dct

infile dictionary using Alex.RAW{

_column(1) str card_code %1s "Schedule Code"
_column(2) str village_code %1s "Village Identifier"
str already defined
dictionary invalid
r(614);

end of do-file
r(614);

I cant figure out why it is thinking of str as a variable. I am hoping someone has experience with this and can offer suggestions.

Thanks!

Alex

_________________________________________________________________
Don�t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/

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