Page 1 of 1

eneabling "keep" option to keep the process temporary directory

Posted: Thu Nov 11, 2021 4:46 pm
by irahmati
Hello guys
Hope you are all just fine.
I want to prevent GMAS from deleting the temporary directory.
It seems there is a "keep" option. but I am not successful in applying it.
please help me to understand what is the correct syntax.
Thanks a lot.

Re: eneabling "keep" option to keep the process temporary directory

Posted: Fri Nov 12, 2021 1:22 pm
by abhosekar
Please note that keep is a command line option and not an option you invoke from a GAMS script such as option reslim for example. To use command line options, if you are using studio you have to type them into the horizontal bar next to the "run" button. In your case, you will write keep=1 (no spaces)

If you are using GAMS from command line, you can simply add keep=1 to the command.
gams filename.gms keep=1

HTH
-Atharv

Re: eneabling "keep" option to keep the process temporary directory

Posted: Mon Nov 29, 2021 2:29 pm
by irahmati
Dear Atharv
Thank you very much for your comprehensive guide.
Thanks to your help not only about 'Keep option', but I learned how to deal with all of the command-line options.
Best regards
Iman

abhosekar wrote: 2 years ago Please note that keep is a command line option and not an option you invoke from a GAMS script such as option reslim for example. To use command line options, if you are using studio you have to type them into the horizontal bar next to the "run" button. In your case, you will write keep=1 (no spaces)

If you are using GAMS from command line, you can simply add keep=1 to the command.
gams filename.gms keep=1

HTH
-Atharv