Dear all,
I have been writing my first do-files in Stata and frequently occur the error that the file cannot be found when executing the do-file:
My folder structure is as follows:
\ProjectName
...\A
...\B
...\Work
........\-To Do
................\2018-08-18-ImportClean
................\2018-08-19-Match
................\2018-08-20-CodeVar
I set the folder "ProjectName" as working directory.
In the do-file, I am using .dta files from two different sub-folders "2018-08-19-Match" and "2018-08-20-CodeVar" (this seems to be the problem).
How can I circumvent this problem so that Stata can find the files by name (without including the entire path to the file)?
Many thanks in advance for your help!
I have been writing my first do-files in Stata and frequently occur the error that the file cannot be found when executing the do-file:
Code:
use "Data3.dta", clear file Data3.dta not found r(601); end of do-file
\ProjectName
...\A
...\B
...\Work
........\-To Do
................\2018-08-18-ImportClean
................\2018-08-19-Match
................\2018-08-20-CodeVar
I set the folder "ProjectName" as working directory.
In the do-file, I am using .dta files from two different sub-folders "2018-08-19-Match" and "2018-08-20-CodeVar" (this seems to be the problem).
How can I circumvent this problem so that Stata can find the files by name (without including the entire path to the file)?
Many thanks in advance for your help!
Comment