Page 1 of 1

Automatically Running GAMS

Posted: Sat Jun 18, 2022 6:07 pm
by lara
Hello, guys!
I'm trying to open and run a GAMS file using a batch file but it is not working.
Can someone help me understand why?

I have already tried like this, but it only opens the file, and does not start running, as I want it to.
"C:\Program Files\GAMS23.6\gamside" SLE_GERAL.gms

The first part is my GAMS application path, and SLE_GERAL is my GAMS file.
I have also tried including START and CALL at the beginning of the code, but it also didn't work.

More context: I have a Fortran code, in which I need the results from the GAMS to continue running. I call the batch file to open GAMS, but I always have to click on Run manually.
I'm not sure a batch file is the best way to do it, I'm open to other suggestions.

Thank you very much!
Lara

Re: Automatically Running GAMS

Posted: Mon Jun 20, 2022 6:54 am
by bussieck
Lara, did you try reading the documentation? Here is a good start for your question https://www.gams.com/latest/docs/UG_GamsCall.html.

-Michael