Loops over file names

I have 150 different files each of which becomes a table in GAMS. Then GAMS should solve 150 models based on these tables.
Say the file names are called scenario_1.csv, scenario_2.csv, …

I want something along these lines, where w runs from 1 to 150 and i and j are the other table sets

table pop(w,i,j*)
loop(w,
$ONDELIM
$INCLUDE C:\Users\Documents\folder1\folder2\scenarios_w.csv
$OFFDELIM
;


I want GAMS to loop over the different file names in this directory, and store them in a parameter pop(w,i,j,*).
The above is not a correct syntax. How do I make it to a valid GAMS syntax?


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.

bump…


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.