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.

1120 OMS<br />

• The first OMS command will route tables with subtype names that start with "Correlation"<br />

to an SPSS-format data file and will not display those tables in the Viewer. All other<br />

output will be displayed in the Viewer<br />

• The second OMS command simply suppresses the Viewer display of all Notes tables,<br />

without routing the Notes table output anywhere else.<br />

COLUMNS Subcommand<br />

You can use the COLUMNS subcommand to specify the dimension elements that should appear<br />

in the columns. All other dimension elements appear in the rows.<br />

• This subcommand applies only to tables that would be displayed as pivot tables in the<br />

Viewer and is ignored without warning if the OMS command does not include any tables.<br />

• With DESTINATION FORMAT = SAV, columns become variables in the data file. If you<br />

specify multiple dimension elements on the COLUMNS subcommand, then variable<br />

names will be constructed by combining nested element and column labels. See “Routing<br />

Output to SAV Files” on p. 1123 for more information on SAV files.<br />

• The COLUMNS subcommand has no effect on pivot tables displayed in the Viewer.<br />

• If you specify multiple dimension elements, they are nested in the columns in the order<br />

in which they are listed on the COLUMNS subcommand. For example:<br />

COLUMNS DIMNAMES=[’Variables’ ’Statistics’]<br />

will nest statistics within variables in the columns.<br />

• If a table doesn’t contain any of the dimension elements listed, then all dimension elements<br />

for that table will appear in the rows.<br />

DIMNAMES Keyword<br />

The COLUMNS subcommand must be followed by either the DIMNAMES or SEQUENCE keyword.<br />

Each dimension of a table may contain zero or more elements. For example, a simple twodimensional<br />

crosstabulation contains a single row dimension element and a single column<br />

dimension element, each with labels based on the variables in those dimensions, plus a single<br />

layer dimension element labeled Statistics (if English is the output language). These element<br />

labels may vary based on the output language (SET OLANG) and/or settings that affect the<br />

display of variable names and/or labels in tables (SET TVARS). The keyword DIMNAMES<br />

must be followed by an equals sign (=) and a list of quoted dimension element labels enclosed<br />

in square brackets.<br />

Example<br />

OMS<br />

/SELECT TABLES<br />

/IF COMMANDS = [’Correlations’ ’Frequencies’]<br />

/DESTINATION FORMAT = SAV OUTPUTSET = SUBTYPES<br />

/COLUMNS DIMNAMES = [’Statistics’].

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

Saved successfully!

Ooh no, something went wrong!