Am 09.10.2019 um 14:58 schrieb Filipe Rodrigues da Costa:
Dear Gretl Users,
I have a long script to work with data. I was wondering if there's a
simple way of adding a few lines of code to save the session. It is
easy to save as .gdt but I cannot find a way of doing it as .gretl. It
would be something similar to:
*<hansl>**
*
*store " /home/user/docs/myfile.gdt"**
*
*</hansl>*
The idea is to keep not only the dataset but also the work done on it.
That's why I was looking for .gretl instead.
It's a legitimate question that has been asked before. I cannot search
in the archives right now but the short story is: Gretl's design is to
either use a scripting approach, and then the script file(s) together
with the dataset (or perhaps databases, in the gretl sense) form the
storage of your work. You could zip them together of course. The gretl
session files are intended for GUI-oriented work, which is why you
cannot store script files in them.
For some scenarios I agree that this is not optimal, but that is the way
to look at it right now.
cheers
sven