Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Taking currently running do file's filename as local or global

    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:

    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.

  • #2
    Original post is here.

    Please don't duplicate posts. It doesn't help get your post more attention.

    Comment


    • #3
      Originally posted by Leonardo Guizzetti View Post
      Original post is here.

      Please don't duplicate posts. It doesn't help get your post more attention.

      Sorry I didn't notice this. Not sure how this happened. The uploading of the post was slow and I think I clicked it again when the uploading of the post was hanging for a while. Perhaps that's why. I can't find any delete button but if there is a mod on this forum, please delete this.

      Comment

      Working...
      X