Am 30.10.2013 14:40, schrieb Allin Cottrell:
OK, I see. Actually, the error message you cite is (or was) quite correct,
strictly speaking. The "clear" command was not implemented in libgretl,
rather it was implemented in the two client programs, gretl and gretlcli.
And when you're running a loop, all commands are processed by the library,
not the client.
However, in today's CVS/snapshots I've tried enabling "clear" in
loops.
Please report any bad behaviour that results!
To provide some background: I was trying to repeatedly overwrite a
variable in an undated dataset with new values in external files. First
I tried 'append', but that shoved the data into new observations (well,
that's what the name says it would do I guess -- I could have worked
with subsampling at this stage, and did something similar as a
workaround in the end). Then I used 'open' (--preserve), but that isn't
allowed in loops. The command 'delete' also wasn't "allowed in this
context". My next idea was 'clear' + 'append', running into the issue
mentioned here.
thanks,
sven