Wouldn't this work?
matrix A = {dataset}
list Datalist ={A}
Alecos Papadopoulos PhD
Athens University of Economics and Business
web: 
 If I do:
 list lista = Exited Age Tenure
 I get: No dataset is in place in the console
 Let's say I ignore it and do afterwards:
 open mymodel.gdt --preserve
 print lista
 Then I get: The symbol 'lista' is undefined
 This is the script I'm working on 
https://pastebin.com/WrawUiLF 
 <
https://pastebin.com/WrawUiLF>
 <
https://pastebin.com/WrawUiLF>
 	
 #--------------------------------------------------------------------## 
 - 
Pastebin.com <
https://pastebin.com/WrawUiLF>
 Pastebin.com is the number one paste tool since 2002. Pastebin is a 
 website where you can store text online for a set period of time.
 
pastebin.com
 ------------------------------------------------------------------------
 *De:* Sven Schreiber <svetosch(a)gmx.net>
 *Enviado:* lunes, 22 de marzo de 2021 21:09
 *Para:* gretl-users(a)gretlml.univpm.it <gretl-users(a)gretlml.univpm.it>
 *Asunto:* [Gretl-users] Re: Defining a list of series before series 
 are loaded, is it possible?
 Am 22.03.2021 um 21:47 schrieb Iago Varela:
 > Hi all, I'm Yago again.
 >
 > So I'm struggling with a new thing.
 >
 > The script I'm writing asks the user to imput at the very top what
 > variables will be used as dependent and regressors for a logit model. I
 > wanted to put it at the top so any user imput is close and neat, and
 > there's no skim through code necessary.
 >
 > The problem is that I can't make a list before I have a dataset, I can't
 > make a list for series that are not defined before such list.
 Hi, I don't understand what the problem is. You can write anything like:
 list reg = x y z
 in a script even with no dataset loaded, and no series "x", "y",
"z"
 present. Of course it won't _work_ before you load the data, but that's
 expected and cannot be avoided.
 So surely you're trying to achieve something different? Maybe a more
 concrete code example would help us understand.
 cheers
 sven
 _______________________________________________
 Gretl-users mailing list -- gretl-users(a)gretlml.univpm.it
 To unsubscribe send an email to gretl-users-leave(a)gretlml.univpm.it
 Website: 
 
https://gretlml.univpm.it/postorius/lists/gretl-users.gretlml.univpm.it/ 
 <
https://gretlml.univpm.it/postorius/lists/gretl-users.gretlml.univpm.it/>
 _______________________________________________
 Gretl-users mailing list -- gretl-users(a)gretlml.univpm.it
 To unsubscribe send an email to gretl-users-leave(a)gretlml.univpm.it
 Website: 
https://gretlml.univpm.it/postorius/lists/gretl-users.gretlml.univpm.it/