I usually run an Eviews code by clicking New/File/Program and hitting "Run". However, I need to store these programs (with minor changes) every time I run each program. I wonder if there is any way I could self-save the program I ran (or embed it within the same workfile Text object).
Thank You, Fabio
Saving Program within Workfile
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13318
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Saving Program within Workfile
You cannot save a program in a workfile (although you could copy the text into a text object and save that). However you can save the program file itself to disk (by clicking save).
Follow us on Twitter @IHSEViews
Re: Saving Program within Workfile
Gareth,I need a command so that the program will save itself. Thank You!
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13318
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Saving Program within Workfile
There isn't one.
And since programs can't modify themselves, what would be the point in saving themselves?
And since programs can't modify themselves, what would be the point in saving themselves?
Follow us on Twitter @IHSEViews
Re: Saving Program within Workfile
You could try a hack like this:
1) Make another program to just save the program and workspace.
2) Write a .bat file, ie windows script file, to run your first program and then the new program to do the saving.
i.e. The bat file contains.
xxx.prg
xxy.prg
The bat file will wait for the fist program to finish before runing the second. I use this all the time.
1) Make another program to just save the program and workspace.
2) Write a .bat file, ie windows script file, to run your first program and then the new program to do the saving.
i.e. The bat file contains.
xxx.prg
xxy.prg
The bat file will wait for the fist program to finish before runing the second. I use this all the time.
Who is online
Users browsing this forum: No registered users and 62 guests