Retrieving path of child-program using subroutine

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

MartinsFest
Posts: 27
Joined: Tue Dec 13, 2022 4:41 am

Retrieving path of child-program using subroutine

Postby MartinsFest » 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)?

Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests