Gretl is somewhat conservative about letting you delete series in a given session because
that can break existing lists, saved models and so on, but reloading the dataset starts a
new session so those worries do not apply.
That's what I thought might be going on, but I don't have any saved models or
lists, and this isn't in a saved session. This is for a JAE replication package, and I
just wanted to have the script clean up the dataset when finished so it's back to the
original state. That's not crucial, and I could just remove the delete command and
leave the "cleanup" to the next user. However this behavior's also
inconsistent with the documentation regarding "delete thislist" where
"thislist" is a named list, so I thought it might be a bug.
PS
Sent from my iPad
On Sep 3, 2016, at 11:04 AM, Allin Cottrell
<cottrell@wfu.edu<mailto:cottrell@wfu.edu>> wrote:
On Fri, 2 Sep 2016, Summers, Peter wrote:
Hi all,
I've got a script that generates a bunch of auxiliary series that I don't want to
keep in the dataset, so I put "delete thislist thatlist (etc.)" as the last line
in the script. When I run it, I get a message (in the output) saying no series were
deleted. When I try to delete them manually, I get an error saying "Cannot delete
(whatever): variable is in use." However if I reload the dataset, the extra series
are gone, so they're being deleted somehow.
Well, if you don't explicitly save the dataset after running your
script then any added variables will automatically disappear, and so won't be there
when the dataset is reloaded.
Gretl is somewhat conservative about letting you delete series in a given session because
that can break existing lists, saved models and so on, but reloading the dataset starts a
new session so those worries do not apply.
Allin Cottrell
_______________________________________________
Gretl-users mailing list
Gretl-users@lists.wfu.edu<mailto:Gretl-users@lists.wfu.edu>
http://lists.wfu.edu/mailman/listinfo/gretl-users