In Stata 16, I could export results and data to a file regardless of the length of the path name. However, in Stata 17, there appears to be a limit such that if the path name is over about 80 characters long, I get an error. For example in the code below, if substitute path with a path on my hard drive that is more than 80 characters long, it fails. This is an esttab example, but I have the same problem with export delimited, so it seems like a general problem.
Code:
. sysuse auto, clear . eststo: quietly regress price weight mpg . eststo: quietly regress price weight mpg foreign . esttab using "path\example.csv" ... file path\example.csv could not be opened r(603);
Comment