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.

OMS 1119<br />

SUBTYPES Output file names based on subtype identifiers. Subtypes only apply to tables.<br />

See “SUBTYPES Keyword” on p. 1115<br />

Example<br />

OMS<br />

/SELECT TABLES<br />

/DESTINATION FORMAT = OXML OUTPUTSET = SUBTYPES.<br />

• OUTPUTSET will not overrwrite existing files. If a specified file name already exists, an<br />

underscore and a sequential integer will be appended to the file name.<br />

• You cannot use OUTPUTSET with FORMAT=SVWSOXML.<br />

FOLDER Keyword<br />

With OUTPUTSET you can also use the FOLDER keyword to specify the location for the routed<br />

output. Since you may not know what SPSS considers to be the "current" directory, it’s<br />

probably a good idea to explicitly specify the location. The keyword must be followed by<br />

an equals sign (=) and a valid location specification in quotes.<br />

Example<br />

OMS<br />

/SELECT TABLES<br />

/IF SUBTYPES = [’Frequencies’ ’Descriptive Statistics’]<br />

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

FOLDER = ’c:\maindir\nextdir\newdir’.<br />

• If the last folder (directory) specified on the path does not exist, it will be created.<br />

• If any folders prior to the last folder on the path do not already exist, the specification is<br />

invalid, resulting in an error.<br />

VIEWER Keyword<br />

By default, output is displayed in the Viewer as well as being routed to other formats and destinations<br />

specified with the FORMAT keyword. You can use VIEWER = NO to suppress the<br />

Viewer display of output for the specified output types. The VIEWER keyword can be used<br />

without the FORMAT keyword (and associated OUTFILE or OUPUTSET keywords) to simply<br />

control what output is displayed in the Viewer.<br />

Example<br />

OMS<br />

/SELECT TABLES<br />

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

/DESTINATION FORMAT SAV OUTFILE = ’c:\mydir\myfile.sav’<br />

VIEWER = NO.<br />

OMS<br />

/SELECT TABLES<br />

/IF SUBTYPES = [’NOTES’]<br />

/DESTINATION VIEWER = NO.

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

Saved successfully!

Ooh no, something went wrong!