Hello,

I am using a Mac OS X, and I am sharing a do file with others who are using PC.

I need to covert the codes into Mac version and I would like some help.

For the working directory:
global maindir1 "/Users/__/desktop/..."
works fine, but

capture use "/maindir1/....dta",clear
does not work. (capture use "$maindir/....dta", clear does not work either)

Can anyone help me fix the route to use the main directory?

Thank you very much!