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: RE: RE: IPUMS data open issue


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: RE: RE: IPUMS data open issue
Date   Thu, 16 Feb 2012 23:52:15 +0000

Good point.

Nick

On Thu, Feb 16, 2012 at 10:39 PM, Phil Clayton
<[email protected]> wrote:
> Oh I agree, but I had an ulterior message for posting that!
>
> You said:
> "the message you reproduce implies that Stata can't find the file, and not that it can find the file but can't read it..."
>
> I wanted to point out that the error message "file ... not found" doesn't necessarily mean that the file isn't there. This can occasionally be unclear and misleading.
>
> Phil
>
> On 17/02/2012, at 9:04 AM, Nick Cox wrote:
>
>> I am guessing but it appears that this file is in part of Gabi's hard
>> drive devoted to her own files, so if she did not have read access to
>> it that would be rather peculiar.
>>
>> Nick
>>
>> On Thu, Feb 16, 2012 at 8:40 PM, Phil Clayton
>> <[email protected]> wrote:
>>> One other possibility is that the file exists but you don't have permission to read it.
>>>
>>> For example (and this is from a Mac, it might be different in Windows), I tried creating a text file that I didn't have permission to read and got the following:
>>>
>>> . ls *.txt
>>>
>>> -r--------  1 root  staff  7168 Feb 16 23:15 myfile.txt
>>>
>>> . type myfile.txt
>>> file myfile.txt not found
>>> r(601);
>>>
>>> Phil
>>>
>>> On 17/02/2012, at 7:10 AM, Nick Cox wrote:
>>>
>>>> You can settle this easily. If the file exists, then
>>>>
>>>> . type C:\Users\Gabi\Desktop\dissertation\usa_00001.dat
>>>>
>>>> in Stata will type the file out. If the file exists, and there is some
>>>> problem with reading it, then I think we have to see what the file
>>>> looks like inside.
>>>>
>>>> Despite your confidence, the message you reproduce implies that Stata
>>>> can't find the file, and not that it can find the file but can't read
>>>> it because your -infix- instructions are wrong. If that is wrong, then
>>>> we still need to see what is inside the file to give advice.
>>>>
>>>> Nick
>>>>
>>>>
>>>> On Thu, Feb 16, 2012 at 8:00 PM, Ferro,Gabrielle A
>>>> <[email protected]> wrote:
>>>>> Thanks. I already tried that and it isn't a Drive issue.  I appears to be an issue with the Data and I was hoping someone would be familiar with the Data from IPUMS and any associated problems.
>>>>>
>>>>> _____________________________________________________________________________________________________________________
>>>>>
>>>>> Gabrielle Ferro
>>>>> Graduate Student
>>>>> Food and Resource Economics
>>>>> University of Florida
>>>>> ________________________________________
>>>>> From: [email protected] [[email protected]] on behalf of Nick Cox [[email protected]]
>>>>> Sent: Thursday, February 16, 2012 1:45 PM
>>>>> To: '[email protected]'
>>>>> Subject: st: RE: IPUMS data open issue
>>>>>
>>>>> As you say, Stata can't find the file you name. I don't think we can do anything except advise that you check the name and/or search for it on your C: drive.
>>>>>
>>>>> Nick
>>>>> [email protected]
>>>>>
>>>>> Ferro,Gabrielle A
>>>>>
>>>>> I received data from IPUMS and am attempting to open in STATA.  Below is the .do file I am using.  It can not recognize the file, I am hoping someone will be able to point me in the right direction.  I have double-checked the directory and it is correct.
>>>>> The Error message that I receive is below the .do file.  Thank you in advance for any help.
>>>>>
>>>>> set more off
>>>>> clear
>>>>> quietly infix ///
>>>>> int year 1-4 ///
>>>>> byte datanum 5-6 ///
>>>>> double serial 7-14 ///
>>>>> int age 15-17 ///
>>>>> byte sex 18-18 ///
>>>>> byte marst 19-19 ///
>>>>> byte race 20-20 ///
>>>>> int raced 21-23 ///
>>>>> byte language 24-25 ///
>>>>> int languaged 26-29 ///
>>>>> byte educ 30-31 ///
>>>>> int educd 32-34 ///
>>>>> long ftotinc 35-41 ///
>>>>> long incwelfr 42-46 ///
>>>>> int poverty 47-49 ///
>>>>> int migplac1 50-52 ///
>>>>> using "C:\Users\Gabi\Desktop\dissertation\usa_00001.dat"
>>>>> file C:\Users\Gabi\Desktop\dissertation\usa_00001.dat not found
>>>>>

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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