Retrieving path of child-program using subroutine
Posted: Mon Jan 02, 2023 4:23 am
Hello,
I am working with a parent-program that has a lot of child-programs. These child-programs are dependent on a couple of subroutines that either imports or generates series for my workfile. For documentation-purposes, I have been asked to make labels on these series that include the path of the child-programs.
It would be easiest if I could make this label in the subroutine, however @linepath will only return the location of my subroutines. Attempting to use "@runpath + @runname" is also futile, as this returns the path of the parent-program. Any tips on how to get the path of our child-programs, preferably by only having to edit the subroutine-code (and not also the code for all the child-programs)?
I am working with a parent-program that has a lot of child-programs. These child-programs are dependent on a couple of subroutines that either imports or generates series for my workfile. For documentation-purposes, I have been asked to make labels on these series that include the path of the child-programs.
It would be easiest if I could make this label in the subroutine, however @linepath will only return the location of my subroutines. Attempting to use "@runpath + @runname" is also futile, as this returns the path of the parent-program. Any tips on how to get the path of our child-programs, preferably by only having to edit the subroutine-code (and not also the code for all the child-programs)?