I want to display currently running do file name while running a do file.
Something like this, although it doesn't need to be exactly like this:
These two links seemed to be saying that the command "project" can do this.
Obtain name of current do-file - Statalist
Re: st: Working with the name of the do file (stata.com)
So I installed the "project" command by running "ssc install project"
But even if I read "help project", this command seems quite complicated and I can't see how to use this to do what I want.
Do you have any idea? I don't necessarily need to use the project command. Anything works.
Something like this, although it doesn't need to be exactly like this:
Code:
local current_do "currently running do file name" display `current_do'
These two links seemed to be saying that the command "project" can do this.
Obtain name of current do-file - Statalist
Re: st: Working with the name of the do file (stata.com)
So I installed the "project" command by running "ssc install project"
But even if I read "help project", this command seems quite complicated and I can't see how to use this to do what I want.
Do you have any idea? I don't necessarily need to use the project command. Anything works.
Comment