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
0 Response to Error while using import command (quotations accepted by a Mac and not accepted by another Mac)
Post a Comment