SAVE TO @file
The SAVE TO command causes output that would normally go only to the terminal
screen to be duplicated in a specified file.
The SAVE TO command is typically used to record the results of SHOW commands, especially SHOW ENVIRONMENT, SHOW SCHEDULE, SHOW STATISTICS, and SHOW DESIGNATED, which are often saved at the beginning of a sfile, as a permanent record of the inputs used to generate the results in the file.
Commands are saved along with reports.
Only one save file may be open at any one time. You may not open a new save file without first closing the current save file (DISCARD).
In the following example, statistics for several schedules are spooled to a
file.
DEFINE SSTAT SHOW STATISTICS; SAVE TO SSTATS.DAT; SSTAT OCCULTATIONS; SSTAT ECLIPSES; SSTAT TRANSITS; DISCARD;