Dear Allin,

Finally I wrote a small script that shows the problem with the "--preserve" option (after using "run" and "open" commands the strings are deleted). Please save the ."inp" files into the Gretl's working directory and execute the "Problem with preserve option.inp" script.

2015-01-14 19:40 GMT-02:00 Allin Cottrell <>:
On Wed, 14 Jan 2015, Henrique Andrade wrote:

> Em 14 de janeiro de 2015, Allin escreveu:
>> On Wed, 14 Jan 2015, Henrique Andrade wrote:
>>> Dear Gretl Team,
>>> We can use the option "--preserve" with the "open" command to preserve
>>> matrices and scalars. I would like to ask you if it is possible to
>> include
>>> strings too (so the "preserve" option will preserve matrices, scalars,
>> and
>>> strings).
>> Doesn't it preserve strings at present? It's in fact supposed to
>> preserve all variables other than series.
> It works, but not all the time ;-) Take a look at this code:
> <hansl>
> string s = "Hello, World!"
> print s
> open Australia.gdt
> print s
> </hansl>

Erm, you forgot to use the --preserve option?

Gretl-users mailing list

Henrique Andrade