SAVE LOG command

Saves the entire command log, or the log entries for the current Analytics session, to an external file.

Syntax

SAVE LOG <SESSION> AS filename {<ASCII>|HTML} <OK>

Parameters

Name Description

SESSION

optional

Only log entries for the current Analytics session are saved.
AS filename

The name of the output file.

Specify the filename as a quoted string. For example: AS "Command Log". You can specify a file extension (.txt, or .htm or .html), but it is not required.

By default, the file is saved to the folder containing the Analytics project.

Use either an absolute or relative file path to save the file to a different, existing folder:

  • AS "C:\Command Log.TXT"
  • AS "Results\Command Log.TXT"
ASCII | HTML

The format of the output file:

  • ASCII (or no keyword) a plain text ASCII file.
  • HTML an HTML file.
OK

optional

If a file with the same name as filename already exists, it is overwritten without confirmation.

Examples

Save the command log from payables analysis

You have performed data analysis on the March payables file and you want to save the associated command log as part of your working papers.

The following example saves the entries from the current Analytics session to an HTML file. If a file with the same name already exists it is overwritten without confirmation:

SAVE LOG SESSION AS "C:\Payables_March_Log.htm" HTML OK