Save and restart on command line

Top  Previous  Next

In DOS and Unix commands to invoke save and restart look like

 

GAMS trandata              s=s1

GAMS tranmodl    r=s1      s=s2

GAMS tranrept    r=s2

 

These are implemented in the file tran.bat with one small addition.  Namely, the save and restart are given a relative address (e.g.  .\t\s1) so they're put in a subdirectory t under the area where we are working to avoid clutter.  When GAMS is told to save its files it generates 7-9 files for each saved set of work files.

One can also use xsave to save machine independent files

 

GAMS trandata              xsave=s1

GAMS tranmodl    r=s1      xsave=s2

GAMS tranrept    r=s2