OMS
The OMS command controls the routing and format of output to
external files and can suppress the display of selected output types in the Viewer.
Note: Square brackets used in the
OMS syntax chart are
required parts of the syntax and are not used to indicate optional elements. Any equals signs (=)
displayed in the syntax chart are required. All subcommands except DESTINATION are
optional. OMS
/SELECT CHARTS HEADINGS LOGS MODELS
TABLES TEXTS TREES WARNINGS
or
/SELECT ALL EXCEPT = [list]
/IF COMMANDS = ["expression" "expression"...]
SUBTYPES = ["expression" "expression"...]
LABELS = ["expression" "expression"...]
INSTANCES = [n n... LAST]
/EXCEPTIF (same keywords as IF, except for INSTANCES)
/DESTINATION
FORMAT=
{DOC }
{HTML }
{OXML }
{PDF }
{TABTEXT }
{TEXT }
{SAV }
{SPV }
{XLS }
{XLSX }
{OUTFILE = "outfile expression" }
{XMLWORKSPACE="name" }
{OUTPUTSET = {SUBTYPES} FOLDER = "dirspec"}
{LABELS }
VIEWER={YES|NO}
NUMBERED = 'varname'
IMAGES={YES|NO}
IMAGEFORMAT={PNG|JPG|BMP}
IMAGEROOT='rootname'
CHARTSIZE=percent
IMAGEMAP={NO|YES}
TREEFORMAT={XML|IMAGE}
CHARTFORMAT={XML|IMAGE}
MODELFORMAT={XML|IMAGE}
TABLES={PIVOTABLE|STATIC}
/COLUMNS DIMNAMES = ["dimension1" "dimension2" ...]
or
/COLUMNS SEQUENCE = [R1 R2 ... RALL C1 C2... CALL L1 L2... LALL]
/TAG = "string"
/NOWARN
-
NUMBEREDonly applies toFORMAT=SAV. -
IMAGESapplies only toFORMAT=OXML,HTML, andSPV. -
IMAGEFORMATapplies only toFORMAT=OXML,HTML, andSPV. -
IMAGEROOTandCHARTSIZEonly apply toFORMAT=OXMLandHTML. -
IMAGEMAPonly applies toFORMAT=HTML. -
TREEFORMATonly applies toFORMAT=OXMLandSPV. -
CHARTFORMATonly applies toFORMAT=OXML.
This command takes effect immediately. It does not read the active dataset or execute pending transformations. See the topic Command Order for more information.
Release History
Release 13.0
-
TREESkeyword introduced onSELECTsubcommand. -
IMAGES,IMAGEROOT,CHARTSIZE, andIMAGEFORMATkeywords introduced onDESTINATIONsubcommand.
Release 14.0
-
XMLWORKSPACEkeyword introduced onDESTINATIONsubcommand.
Release 16.0
-
IMAGEFORMAT=VMLintroduced forFORMAT=HTMLonDESTINATIONsubcommand. -
IMAGEMAPkeyword introduced forFORMAT=HTMLonDESTINATIONsubcommand. -
FORMAT=SPVintroduced for saving output in Viewer format. -
CHARTFORMATkeyword introduced. -
TREEFORMATkeyword introduced. -
TABLESkeyword introduced. -
FORMAT=SVWSOXMLis no longer supported.
Release 17.0
-
MODELSkeyword introduced onSELECTsubcommand. -
FORMAT=DOC,XLS,PDF, andSPWintroduced. -
MODELFORMATkeyword introduced.
Release 19.0
-
IMAGEFORMAT=VMLintroduced forFORMAT=OXMLonDESTINATIONsubcommand. - For version 19.0.0.1 and higher, the
IMAGEMAPkeyword will no longer generate image map tooltips for major tick labels.
Release 21.0
-
FORMAT=XLSXadded toDESTINATIONsubcommand.
Release 22.0
FORMAT=REPORTHTMLandFORMAT=REPORTMHTadded toDESTINATIONsubcommand.REPORTTITLEkeyword added toDESTINATIONsubcommand.
Release 27.0
FORMAT=REPORTHTMLandFORMAT=REPORTMHTdeprecated from theDESTINATIONsubcommand.REPORTTITLEkeyword deprecated from theDESTINATIONsubcommand.
Release 28.0.1
- The DESTINATION subcommand's FORMAT=DOC option export's to Microsoft Word *.docx format (it previously exported to Microsoft Word *.doc format).
Example
OMS
/DESTINATION FORMAT = OXML OUTFILE = '/mydir/myfile.xml'
VIEWER = NO.
OMS
/SELECT TABLES
/IF COMMANDS = ['Regression']
SUBTYPES = ['Coefficients']
/DESTINATION FORMAT = SAV
OUTFILE = '/mydir/regression_coefficients.sav'.
REGRESSION
/STATISTICS COEFF OUTS R ANOVA
/DEPENDENT income
/METHOD=ENTER age address ed employ.
OMSEND.