Hi all,
I was wondering whether there is a way to "break" a rather lengthy path name. I have tried several things that came to mind, although none of them worked. I have tried:
Basically I am trying to fit within 80 columns that global macro. I have "anonymised" some bits of the path, but I have left the "OneDrive - University of Edinburgh" as it is because I have the suspicion that the "-" is causing some problem, somehow.
The first option gives no syntax error, and when I use "display" the path is displayed properly. However, if I then do:
Stata complains that "xxxxxx/xxxxxr/xxxxx/xxxx.dta" is invalid---which suggests that Stata is not taking the whole path, but the second line after the break. Perhaps because Stata thinks there is a "space" between "...Edinburgh/" and "xxxxxx...."
Any idea would be great. Is it possible (breaking a path name) at all? Thank you!!
I was wondering whether there is a way to "break" a rather lengthy path name. I have tried several things that came to mind, although none of them worked. I have tried:
Code:
#delimit ;
global rawdata "C:/Users/xxxx/OneDrive/OneDrive - University of Edinburgh/"
"xxxxxx/xxxxxr/xxxxx" ;
Code:
global rawdata "C:/Users/xxxx/OneDrive/OneDrive - University of Edinburgh/ ///
xxxxxx/xxxxxr/xxxxx"
Code:
global rawdata "C:/Users/xxxx/OneDrive/OneDrive - University of Edinburgh/
xxxxxx/xxxxxr/xxxxx"
The first option gives no syntax error, and when I use "display" the path is displayed properly. However, if I then do:
Code:
use "$rawdata/xxxx.dta", clear
Any idea would be great. Is it possible (breaking a path name) at all? Thank you!!

Comment