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]

st: Dictionary Files


From   David Jones <david.jones4822@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Dictionary Files
Date   Wed, 24 Jul 2013 15:03:13 -0400

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/


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