I trying to automate directory change using Macros, I have automate the address generation D:\statawork\2017\abc 123.
But the problem is to put in a local with the double quotes, because my addresses have spaces, for directory change.
Here is my complete code and output is below;
. local folder= "$main\\`curr_year'\CCS-Telephone\\`first_name' CCS"
. di "`folder'"
D:\Official\2017\CCS-Telephone\31st wave CCS
. cd "`folder'"
unable to change to D:\Official\2017\CCS-Telephone\31st wave CCS
r(170);
end of do-file
r(170);
But the problem is to put in a local with the double quotes, because my addresses have spaces, for directory change.
Here is my complete code and output is below;
. local folder= "$main\\`curr_year'\CCS-Telephone\\`first_name' CCS"
. di "`folder'"
D:\Official\2017\CCS-Telephone\31st wave CCS
. cd "`folder'"
unable to change to D:\Official\2017\CCS-Telephone\31st wave CCS
r(170);
end of do-file
r(170);
Comment