-
Notifications
You must be signed in to change notification settings - Fork 1
/
_dir_setting.do
46 lines (31 loc) · 1.17 KB
/
_dir_setting.do
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PROJECT: CPI - CHDN Nutrition Security Report
PURPOSE: directory setting
AUTHOR: Nicholus
CREATED: 02 Dec 2019
MODIFIED:
THINGS TO DO:
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
// ***SET ROOT DIRECTORY HERE AND ONLY HERE***
// create a local to identify current user
local user = c(username)
di "`user'"
// Set root directory depending on current user
if "`user'" == "nicholustintzaw" {
global dir /Users/nicholustintzaw/Documents/PERSONAL/Projects/07_CPI_CHDN/01_workflow
global raw $dir/01_raw
global do $dir/00_do
global dta $dir/02_dta
global cdta $dir/03_cleaned_dta
global out $dir/04_out
}
else if "`user'" == "nicholustintzaw" {
global dir /Users/nicholustintzaw/Documents/PERSONAL/Projects/07_CPI_CHDN/01_workflow
global raw $dir/01_raw
global do $dir/00_do
global dta $dir/02_dta
global cdta $dir/03_cleaned_dta
global out $dir/04_out
}
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%