Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Dictionary Files


From   Sergiy Radyakin <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: Dictionary Files
Date   Wed, 24 Jul 2013 15:22:12 -0400

You need to put an empty line at the end of the dictionary. Better
yet, write a couple of stars and an 'end of file' message.
Best, Sergiy Radyakin

On Wed, Jul 24, 2013 at 3:03 PM, David Jones <[email protected]> wrote:
> Hi,
>
> I have a fixed format text file that has about 100 variables from
> which I only want to grab 7. The data file did not come with a
> dictionary so I had to create my own, but when I run this I get the
> error "Dictionary Invalid"
>
> Here is my dictionary file:
>
> infix dictionary using history.txt {
>
>  var_1 1-12
>  var_2 13-24
>  var_3 25-36
> str30 var_4 857-886
> str50 var_5 945-994
>  var_6 995-1006
>  var_7 1007-1018
>
> }
>
> I have another dictionary file that I created the exact same way (for
> a different text file) that works. I can't figure out why this won't
> work.
>
>
> Thanks for your help!
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index