Page 1 of 1
Return .prg Filename
Posted: Wed Aug 31, 2016 3:59 pm
by msena
Is there an analogous code of @filepath to return a .prg filename?
Thanks!
Re: Return .prg Filename
Posted: Wed Aug 31, 2016 4:59 pm
by EViews Gareth
No.
I can't see any situation where you would need to know the name of the program that is running?
Re: Return .prg Filename
Posted: Wed Aug 31, 2016 5:50 pm
by startz
It's like the mfilename command in Matlab. You can use it to put documentation into output files of what program produced it.
Re: Return .prg Filename
Posted: Wed Aug 31, 2016 7:09 pm
by EViews Gareth
But at the time you write the program, you know what the program is called. There is no dynamic creation of programs in EViews.
Re: Return .prg Filename
Posted: Wed Aug 31, 2016 8:21 pm
by startz
I won't argue that it's important, but...
I often modify a program and save it under a new name. It's nice if the name can self-documenting as I tend to forget to change the variable containing the file name in the program.
Re: Return .prg Filename
Posted: Wed Aug 31, 2016 8:48 pm
by EViews Gareth
Fair enough