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