# model save command

Syntax

model save s <keyword>

Save all model-state information. The file s is created and, if no extension is provided, the extension is set to “.sav”. This information includes any defined FISH functions/variables, histories, tables, and other model components.

The inputdir and localdir keywords can be place after s to specify the location of the save file relative to the calling file or the project file.

A saved model state can be re-activated via the model restore command.

compress

Automatically compresses the save file after creation. This takes additional time, but can remove up to 75% of the file on disk. The file will be automatically uncompressed on restore.

nocompress

If a save file that was previously compressed is over-written, it will be automatically compressed again. Use this option to suppress that and save an uncompressed file over it.