27.03.2013 Views

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

OMSLOG<br />

OMSLOG FILE = ’filespec’<br />

[/APPEND = [NO ]]<br />

[YES]<br />

[/FORMAT = [XML ]]<br />

[TEXT]<br />

Example<br />

OMSLOG FILE = ’c:\mydir\mylog.xml’.<br />

Overview<br />

OMSLOG creates a log file in either XML or text form for subsequent OMS commands (see<br />

“OMS” on p. 1110) during a session.<br />

• The log contains one line or main XML element for each destination file and contains<br />

the event name, file name and location, the ID tag value, and a timestamp. The log also<br />

contains an entry when an OMS command is started and stopped.<br />

• The log file remains open, and OMS activity is appended to the log, unless logging is<br />

turned off by an OMSEND command (see “LOG Keyword” on p. 1157) or the end of the<br />

SPSS session.<br />

• A subsequent OMSLOG command that specifies a different log file ends logging to the<br />

file specified on the previous OMSLOG command.<br />

• A subsequent OMSLOG file that specifies the same log file will overwrite the current log<br />

file for the default FORMAT = XML or in the absence of APPEND = YES for<br />

FORMAT = TEXT.<br />

• OMS activity for any OMS commands executed before the first OMSLOG command in<br />

the session is not recorded in any log file.<br />

Basic Specification<br />

The basic specfication is the command name OMSLOG followed by a FILE subcommand that<br />

specifies the log file name and location.<br />

<strong>Syntax</strong> Rules<br />

• The FILE subcommand is required. All other specifications are optional.<br />

• Equals signs (=) shown in the command syntax chart and examples are required, not optional.<br />

1158

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!