Hi everyone,
I am trying to define directories in a do file . Our team uses Box Sync to share work folders, and my code to define file paths is as follows:
local corredor=c(username)
if "`corredor'"=="jasle" {
global data="C:\Users\jasle\Box Sync\PMMVY Project\Data"
}
if "`corredor'"=="mcb76" {
global data="C:\Users\mcb76\Box Sync\PMMVY Project\Data"
}
global input= "$data\data_raw"
global output="$data\output"
global do = "$data\do_files"
*defining the dataset
use "$input\scoping\listing\listing_raw_15-10-2018.dta"
But this gives me an error: file \data_raw\scoping\listing\listing_raw_15-10-2018.dta not found, which probably means that it is not picking up anything from global data.
The above system works perfectly when I used it on Dropbox for a different work team. May I know what's going wrong here?
Thanks!
I am trying to define directories in a do file . Our team uses Box Sync to share work folders, and my code to define file paths is as follows:
local corredor=c(username)
if "`corredor'"=="jasle" {
global data="C:\Users\jasle\Box Sync\PMMVY Project\Data"
}
if "`corredor'"=="mcb76" {
global data="C:\Users\mcb76\Box Sync\PMMVY Project\Data"
}
global input= "$data\data_raw"
global output="$data\output"
global do = "$data\do_files"
*defining the dataset
use "$input\scoping\listing\listing_raw_15-10-2018.dta"
But this gives me an error: file \data_raw\scoping\listing\listing_raw_15-10-2018.dta not found, which probably means that it is not picking up anything from global data.
The above system works perfectly when I used it on Dropbox for a different work team. May I know what's going wrong here?
Thanks!
Comment