Return .prg Filename

For questions regarding programming in the EViews programming language.

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

msena
Posts: 9
Joined: Tue Aug 16, 2016 4:21 pm

Return .prg Filename

Postby msena » Wed Aug 31, 2016 3:59 pm

Is there an analogous code of @filepath to return a .prg filename?
Thanks!

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13603
Joined: Tue Sep 16, 2008 5:38 pm

Re: Return .prg Filename

Postby EViews Gareth » Wed Aug 31, 2016 4:59 pm

No.

I can't see any situation where you would need to know the name of the program that is running?

startz
Non-normality and collinearity are NOT problems!
Posts: 3797
Joined: Wed Sep 17, 2008 2:25 pm

Re: Return .prg Filename

Postby startz » Wed Aug 31, 2016 5:50 pm

It's like the mfilename command in Matlab. You can use it to put documentation into output files of what program produced it.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13603
Joined: Tue Sep 16, 2008 5:38 pm

Re: Return .prg Filename

Postby EViews Gareth » Wed Aug 31, 2016 7:09 pm

But at the time you write the program, you know what the program is called. There is no dynamic creation of programs in EViews.

startz
Non-normality and collinearity are NOT problems!
Posts: 3797
Joined: Wed Sep 17, 2008 2:25 pm

Re: Return .prg Filename

Postby startz » Wed Aug 31, 2016 8:21 pm

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.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13603
Joined: Tue Sep 16, 2008 5:38 pm

Re: Return .prg Filename

Postby EViews Gareth » Wed Aug 31, 2016 8:48 pm

Fair enough


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest