So I have organized my files such as in the Superproject folder I have folders called Scripts, Data, Analysis1, Analysis2, etc. Within Scripts folder I have the main script and all the nested scripts, that is all the .do files. So what I want to do is: write a command in the .do file that is placed within Scripts, that will navigate back, go to Data folder, and use the file `1'data. Here `1' refers to the year that I hope to use as the argument. After all the analysis is done I want to save the outputs in the Analysis1 folder, so I want it to navigate back a directory, then go into Analysis1 and save it as `1'analysis.
What kind of command using relative paths will work here?
What kind of command using relative paths will work here?
Code:
use ../Data/`1'data, clear
Code:
save ../Analysis1/`1'analysis, replace
Comment