Riccardo (Jack) Lucchetti schrieb:
I have the feeling that nothing is wrong with "include" per se.
Yes, except that 'include ./thisfile.inp' doesn't work.
If my suspicion is right, your included file starts with an
"if"
statement, which is indeed illegal if no dataset is open (and rightly
so).
But why "rightly so"? It's not at all obvious to me.
If you use the if statement to de-activate a portion of the script
unconditionally (as in "if 2>3"), it seems to me that commenting out
the code is a much better solution.
Yeah except that AFAIK in gretl's editor it's not possible to do it with
a large chunk in one step. Or is there a hidden (or not so hidden) way?
thanks,
sven