I am a mac user and I work with Stata SE 18.0. I have opened a do file and want to read a dta file. I can open the file using the full address perfectly. I use this command:
Since this is a shared project, I want Stata to change the directory to a local folder first, then open the file. So my colleagues can execute the do file easily on their systems. I use these commands:
But these two commands cannot open the file, and report this error message: file ../folder/your_file_name.dta not found r(601);
I would appreciate your help.
Code:
use "/Users/homa/Downloads/data/WBES_FIRM/Angola/Angola-2010-full-data-.dta", clear
Since this is a shared project, I want Stata to change the directory to a local folder first, then open the file. So my colleagues can execute the do file easily on their systems. I use these commands:
Code:
cd "/Users/homa/Downloads" use "../data/WBES_FIRM/Angola/Angola-2010-full-data-.dta", clear
But these two commands cannot open the file, and report this error message: file ../folder/your_file_name.dta not found r(601);
I would appreciate your help.

Comment