Dear Stata users,
I have written four programmes in .ado files but I don't manage for Stata programme to find the files and therefore, recognize the commands. The version of Stata that I am using is Stata/SE 15.1.
First, I tried moving the .ado files into the PERSONAL path ("c:\ado\personal" folder), as I found this was the thing to do in the documentation. I did not manage to run the programme either calling the programme from another .do file or by using the the commands do or run followed by the filename in the prompt. I check online, and I tried to copy the programmes inside of subfolders named after the first letter of each programme, within the "c:\ado\personal" folder. It did not work either. I tried also copying the programmes into the OLDPLACE and PLUS paths, and I tried both options for each (with letter subfolders or without them). Nothing seems to work.
I noticed two things when using the sysdir and the adopath commands. When looking at the PLUS, PERSONAL, and OLDPLACE paths, the c is written by default in lower case. I thought this might be the problem, as the actual directory seems to be specified with a higher case in my system. So I used sysdir set PERSONAL "C:\ado\personal" , to specify the path correctly, but this did not seem to fix it. Regarding the adopath result, I noticed that, for some reason, there paths are specified with back a forth slashes inconsistently, so I used again the sysdir set command to use only forth slashes to at least fix the inconsistencies, as I am unaware of why the forth slash happens in the first place. This also does not seem to help Stata find the programmes when I use, for example the do sliderado.ado (one of the names of the .ado files) or the same with run. I always get, in every of the described scenarios, a file not found. Anybody can help me understand what can be going on? Thanks in advance, I let a screenshot of the results when I run sysdir or adopath with the problems I described. Thanks in advance for your time.
I have written four programmes in .ado files but I don't manage for Stata programme to find the files and therefore, recognize the commands. The version of Stata that I am using is Stata/SE 15.1.
First, I tried moving the .ado files into the PERSONAL path ("c:\ado\personal" folder), as I found this was the thing to do in the documentation. I did not manage to run the programme either calling the programme from another .do file or by using the the commands do or run followed by the filename in the prompt. I check online, and I tried to copy the programmes inside of subfolders named after the first letter of each programme, within the "c:\ado\personal" folder. It did not work either. I tried also copying the programmes into the OLDPLACE and PLUS paths, and I tried both options for each (with letter subfolders or without them). Nothing seems to work.
I noticed two things when using the sysdir and the adopath commands. When looking at the PLUS, PERSONAL, and OLDPLACE paths, the c is written by default in lower case. I thought this might be the problem, as the actual directory seems to be specified with a higher case in my system. So I used sysdir set PERSONAL "C:\ado\personal" , to specify the path correctly, but this did not seem to fix it. Regarding the adopath result, I noticed that, for some reason, there paths are specified with back a forth slashes inconsistently, so I used again the sysdir set command to use only forth slashes to at least fix the inconsistencies, as I am unaware of why the forth slash happens in the first place. This also does not seem to help Stata find the programmes when I use, for example the do sliderado.ado (one of the names of the .ado files) or the same with run. I always get, in every of the described scenarios, a file not found. Anybody can help me understand what can be going on? Thanks in advance, I let a screenshot of the results when I run sysdir or adopath with the problems I described. Thanks in advance for your time.
Comment