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

Re: st: Infile Errors


From   Ted Anagnoson <[email protected]>
To   [email protected]
Subject   Re: st: Infile Errors
Date   Mon, 06 Jun 2005 21:13:06 -0700

usually with str format, I use str1, str2, str50, with the number being the width of the variable....I'd try that first.

Ted Anagnoson
Cal State Los Angeles



At 03:19 AM 6/7/2005 +0000, you wrote:

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