Hi, I'm new in the Forum but I used Stata in the past while being a RA (and coming back again now).
I wanted to use a global to import files faster. The code is the following (I'm using Mac):
It doesn't run on my Mac, but it does run on my colleague's Mac.
What it does run in my Mac is using "" in the command import, as follows:
Now, this inconsistency is important for us to solve, because my colleague's Mac does not run the code above (with quotation marks).
We both use Stata 17.0
Below, is the error I get from Stata:
Thank you,
Guido
I wanted to use a global to import files faster. The code is the following (I'm using Mac):
Code:
clear all set more off global path "/Users/guidodamonte/Dropbox/World Bank/LTGM_WesternBalkans/LTGM_Serbia" import excel $path/RawData/CLASS.xlsx, firstrow clear
What it does run in my Mac is using "" in the command import, as follows:
Code:
global path "/Users/guidodamonte/Dropbox/World Bank/LTGM_WesternBalkans/LTGM_Serbia" import excel "$path/RawData/CLASS.xlsx", firstrow clear
We both use Stata 17.0
Below, is the error I get from Stata:
. clear all
. set more off
.
. global path "/Users/guidodamonte/Dropbox/World Bank/LTGM_WesternBalkans/LTGM_Serbia"
. import excel $path/RawData/CLASS.xlsx, firstrow clear
using required
r(100);
end of do-file
r(100);
. set more off
.
. global path "/Users/guidodamonte/Dropbox/World Bank/LTGM_WesternBalkans/LTGM_Serbia"
. import excel $path/RawData/CLASS.xlsx, firstrow clear
using required
r(100);
end of do-file
r(100);
Guido
Comment