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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1116 OMS<br />

be followed by an equals sign (=) and a list of positive integers and/or the keyword LAST enclosed<br />

in square brackets.<br />

Example<br />

OMS<br />

/SELECT TABLES<br />

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

SUBTYPES = [’Frequencies’]<br />

INSTANCES = [1 LAST]<br />

/DESTINATION...<br />

OMS<br />

/SELECT TABLES<br />

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

INSTANCES = [1 LAST]<br />

/DESTINATION...<br />

• The first OMS command will select the first and last frequency tables from each FRE-<br />

QUENCIES command.<br />

• The second OMS command, in the absence of a SUBTYPES or LABELS specification, will<br />

select the first and last tables of any kind from the selected command. For the FREQUEN-<br />

CIES command (and most other statistical and charting procedures), the first table would<br />

be the Notes table.<br />

Wildcards<br />

For COMMANDS, SUBTYPES, and LABELS, you can use an asterisk (*) as a wildcard indicator<br />

at the end of a quoted string to include all commands, tables, and/or charts that start with<br />

that quoted string, as in:<br />

OMS<br />

/SELECT TABLES<br />

/IF SUBTYPES = [’Correlation*’]<br />

/DESTINATION...<br />

In this example, all table subtypes that begin with "Correlation" will be selected.<br />

The values of LABELS can contain asterisks as part of the value as in "First variable * Second<br />

variable Crosstabulation," but only an asterisk as the last character in the quoted string<br />

is interpreted as a wildcard, so:<br />

OMS<br />

/SELECT TABLES<br />

/IF LABELS = [’First Variable **’]<br />

/DESTINATION...<br />

will select all tables with labels that start with "First Variable *".<br />

EXCEPTIF Subcommand<br />

The EXCEPTIF subcommand excludes specified output object types. It has the same keywords<br />

and syntax as IF, with the exception of INSTANCES, which will cause an error if used<br />

with EXCEPTIF.

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

Saved successfully!

Ooh no, something went wrong!