OMS identifiers

The OMS Identifiers dialog box is designed to assist you in writing OMS command syntax. You can use this dialog box to paste selected command and subtype identifiers into a command syntax window. See the topic OMS for more information.

With the OMS command, you can use the IF subcommand to specify output from specific commands and/or table types that you want to route to various output destinations (including the Viewer), and you can use EXCEPTIF to exclude specific output. For example:


OMS 
  /SELECT TABLES
  /IF COMMANDS=['Crosstabs' 'Descriptives'] 
      SUBTYPES=['Crosstabulation' 'Descriptive Statistics']
  /DESTINATION FORMAT=OXML OUTFILE='/temp/temp.xml'.

This command will select crosstabulation and descriptive statistics tables from subsequent CROSSTABS and DESCRIPTIVES commands and generate an XML file that contains the contents of those tables.

Command Identifiers. Most—but not all—command identifiers are the same as the command names. Like command names, they are not case sensitive. You specify command names with the COMMANDS keyword on the IF or EXCEPTIF subcommands.

Subtype Identifiers. Subtypes are the different types of pivot tables that can be produced. Some subtypes are produced by only one command; other subtypes can be produced by multiple commands (although tables with the same subtype names in different procedures may have different structures and contents). Both of the subtypes specified in the above example can be produced by multiple commands, but since we also specify the commands, output from any other commands that produce those subtypes will not be selected.

To use the oms identifiers dialog box

  1. From the menus choose:

    Utilities > OMS Identifiers...

  2. Select one or more command or subtype identifiers. (Use Ctrl+click to select multiple identifiers in each list.)
  3. Click Paste Commands and/or Paste Subtypes.
  • The list of available subtypes is based on the currently selected command(s). If multiple commands are selected, the list of available subtypes is the union of all subtypes that are available for any of the selected commands. If no commands are selected, all subtypes are listed.
  • The identifiers are pasted into the designated command syntax window at the current cursor location. If there are no open command syntax windows, a new syntax window is automatically opened.
  • Each command and/or subtype identifier is enclosed in quotation marks when pasted, because OMS command syntax requires these quotation marks.
  • Identifier lists for the COMMANDS and SUBTYPES keywords must be enclosed in brackets, as in:

  /IF COMMANDS=['Crosstabs' 'Descriptives'] 
      SUBTYPES=['Crosstabulation' 'Descriptive Statistics']