I am trying to 'compartmentalize' my GAMS code. In doing so, I am building a 'Main.gms' script, which call several sub-files. An example of this looks like
Code: Select all
* Main.gms
*Define output to the IDE
$setglobal ide "ide=%gams.ide% lo=%gams.lo% errorlog=%gams.errorlog% errmsg=1"
loop( cases,
*This bit of code creates the GDX files from CSVs which are read into the solver
execute "gams Path To File\CreateGDXFile.gms s=wf1" %ide%" ;
*This is a portion of the code
execute "gams Path To File/SubFile1.gms r=wf1 %ide%" ;
... and so on
Code: Select all
Error: Parameter error(s), Reading parameter(s) from "command line", **** Error Unkown option "To"
P.S. According to https://support.gams.com/platform:space ... _file_name, GAMS should be able to handle spaces as of 2018.