Kirimi Sindi <[email protected]> :
Easy answer: just put all the files in the same directory and do not
specify paths.
clear all
set mem 1000m
local dat "cpsmar08.dat"
local dta "cpsmar08.dta"
local dct "cpsmar08.dct"
dir cpsmar*
qui infile using `dct', using(`dat')
Did you forget to unpack a zip file, perhaps?
On Thu, May 21, 2009 at 11:29 PM, Kirimi Sindi <[email protected]> wrote:
> I am trying to figure out what is wrong with this infile syntax.
>
> . set mem 1000m
> . local dat_name "cpsmar08.dat"
> . local dta_name "./cpsmar08.dta"
> . local dct_name "./cpsmar08.dct"
> . quietly infile using "`dct_name'", using("`dat_name'") clear
> file cpsmar08.dat not found
> r(601);
>
> end of do-file
> r(601);
>
> Thank you,
>
> Kirimi
*
* 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/