Dear Leandro, Artur and, Allin,
Thank you so much for your valuable help. The script Allin had suggested
worked fine for me:
store newfile.gdt list
open newfile.gdt
Best,
Henrique
Enviado via iPhone
Em 09/08/2010, às 15:52, artur bala <artur.bala(a)laposte.net> escreveu:
Le 09/08/2010 19:01, artur bala a écrit :
Le 09/08/2010 18:31, Leandro Zipitria a écrit :
Quick answer: just save the variable you need in a new database (they are
very few).
For example, I would like to use the series 5, 8, 37 and, 98 and delete
anyone else. Please take a look in this pseudo-code:
list Y = 5 8 37 98
if the variable is on the list
make nothing
else
delete variable
endif
the trouble with this script (if it does actually work) is that every time
a variable is deleted all remainng variables are being renumbered. For
example, once you delete the 1st variable (whose ID is 5) the 8th variable
becomes the 7th.
Better if you only save the variable you need as Leandro pointed out.
whatever the solution may be, the "delete" command seems unavailable in loop
mode.
cheers,
artur
_______________________________________________
Gretl-users mailing list
Gretl-users(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users