Save: S

Top  Previous  Next

Save is a GAMS command line parameter.  It is used though the syntax

 

Save=path\filestem

or

S=path\filestem

 

Where path may be used or omitted and filestem is the name under which a family of seven to nine work files will be saved.  In versions before 20.1 these files were named

 

Path\Filestem.G01

Path\Filestem.G02

Path\Filestem.G09

 

and will be platform dependent binary files only suitable for GAMS use but not for user manipulation.  In later versions there is only one of these and it in a packed form that is machine independent.  That file is named

 

Path\Filestem.G00

 

If the path is omitted the files will be saved in the current working directory.  Any valid name for the filestem may be employed which will result in a validly named file in the operating system being used.

Often it is useful to include a path to a directory where these will remain out of the way.  Such a path is achieved often by using .\t\ which places the work files in a subdirectory of the current working directory named t.

The work files contain the complete contents of the GAMS run after execution and also may contain items from earlier GAMS runs if incorporated through a restart command.

Current work files are platform independent and may be moved for example from a windows machine to a Unix or Linux machine. For versions of GAMS before 21.7 Xsave as discussed below allows platform independence.