Norbert Michel <[email protected]>:
I doubt your assertion... one of these produces the quoted error, and
the other does not:
clear
file open d using c:\tmp.dct, write replace
file write d "dictionary {"
file write d _n "NEWID 1 - 8"
file write d _n "AGE_REF 11 - 12"
file write d _n "AGE_REF_ 13 - 13"
file write d _n "}" _n
file close d
file open d using c:\tmp.txt, write replace
file write d "12345678 101" _n
file close d
type tmp.dct
type tmp.txt
infix using C:\tmp.dct, using(C:\tmp.txt)
li
clear
file open d using c:\tmp.dct, write replace
file write d "infix dictionary {"
file write d _n "NEWID 1 - 8"
file write d _n "AGE_REF 11 - 12"
file write d _n "AGE_REF_ 13 - 13"
file write d _n "}" _n
file close d
file open d using c:\tmp.txt, write replace
file write d "12345678 101" _n
file close d
type tmp.dct
type tmp.txt
infix using C:\tmp.dct, using(C:\tmp.txt)
li
Can you reproduce your problem in a concrete example?
On Fri, Feb 29, 2008 at 2:11 PM, Norbert Michel
<[email protected]> wrote:
> Thank you for the reply. Unfortunately, I had tried this too - Just to be safe, I tried again....
>
> "infix dictionary" results in the same error message as "dictionary"
>
> Any ideas?
>
> >>> "Austin Nichols" <[email protected]> 02/29/08 7:13 AM >>>
>
>
> Norbert Michel <[email protected]>:
> Replace "dictionary" with "infix dictionary" in your dct file (per help infix).
>
> On Thu, Feb 28, 2008 at 10:39 PM, Norbert Michel
> <[email protected]> wrote:
> > I am having trouble pulling in data from an ASCII file (the consumer expenditure survey data).
> >
> > I have start positions and character lengths, and I seem to be missing something simple...but I can't figure out exactly what I'm missing. Any help would be greatly appreciated.
> >
> > I am using the following command:
> > infix using C:\Users\Norbert\Documents\CEX\2004\tryover, using(C:\Users\Norbert\Documents\CEX\2004\Intrvw04\fmlyi041x.txt)
> >
> > The "tryover" file is supposed to be my dictionary file, and the "fmlyi041x.txt" is my raw data file.
> >
> > My dictionary file looks like this:
> > dictionary using C:\Users\Norbert\Documents\CEX\2004\Intrvw04\fmlyi041x.txt {
> > NEWID 1 - 8
> > AGE_REF 11 - 12
> > AGE_REF_ 13 - 13
>
*
* 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/