eneabling "keep" option to keep the process temporary directory Topic is solved

Problems with syntax of GAMS
Post Reply
irahmati
User
User
Posts: 11
Joined: 2 years ago

eneabling "keep" option to keep the process temporary directory

Post 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.
abhosekar
Moderator
Moderator
Posts: 295
Joined: 3 years ago

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

Post 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
irahmati
User
User
Posts: 11
Joined: 2 years ago

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

Post 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
Post Reply