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
  • NUMBERED only applies to FORMAT=SAV.
  • IMAGES applies only to FORMAT=OXML, HTML, and SPV.
  • IMAGEFORMAT applies only to FORMAT=OXML, HTML, and SPV.
  • IMAGEROOT and CHARTSIZE only apply to FORMAT=OXML and HTML.
  • IMAGEMAP only applies to FORMAT=HTML.
  • TREEFORMAT only applies to FORMAT=OXML and SPV.
  • CHARTFORMAT only applies to FORMAT=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

  • TREES keyword introduced on SELECT subcommand.
  • IMAGES, IMAGEROOT, CHARTSIZE, and IMAGEFORMAT keywords introduced on DESTINATION subcommand.

Release 14.0

  • XMLWORKSPACE keyword introduced on DESTINATION subcommand.

Release 16.0

  • IMAGEFORMAT=VML introduced for FORMAT=HTML on DESTINATION subcommand.
  • IMAGEMAP keyword introduced for FORMAT=HTML on DESTINATION subcommand.
  • FORMAT=SPV introduced for saving output in Viewer format.
  • CHARTFORMAT keyword introduced.
  • TREEFORMAT keyword introduced.
  • TABLES keyword introduced.
  • FORMAT=SVWSOXML is no longer supported.

Release 17.0

  • MODELS keyword introduced on SELECT subcommand.
  • FORMAT=DOC, XLS, PDF, and SPW introduced.
  • MODELFORMAT keyword introduced.

Release 19.0

  • IMAGEFORMAT=VML introduced for FORMAT=OXML on DESTINATION subcommand.
  • For version 19.0.0.1 and higher, the IMAGEMAP keyword will no longer generate image map tooltips for major tick labels.

Release 21.0

  • FORMAT=XLSX added to DESTINATION subcommand.

Release 22.0

  • FORMAT=REPORTHTML and FORMAT=REPORTMHT added to DESTINATION subcommand.
  • REPORTTITLE keyword added to DESTINATION subcommand.

Release 27.0

  • FORMAT=REPORTHTML and FORMAT=REPORTMHT deprecated from the DESTINATION subcommand.
  • REPORTTITLE keyword deprecated from the DESTINATION subcommand.

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.