INSTANCES Keyword (OMS command)

The INSTANCES subcommand selects the nth instance of an object matching the other criteria on the IF subcommand within a single command execution. The keyword INSTANCES must be followed by an equals sign (=) and a list of positive integers and/or the keyword LAST enclosed in square brackets.

Example

OMS
 /SELECT TABLES
 /IF COMMANDS = ['Frequencies'] 
     SUBTYPES = ['Frequencies']
     INSTANCES = [1 LAST]
 /DESTINATION...
OMS
 /SELECT TABLES
 /IF COMMANDS = ['Frequencies'] 
     INSTANCES = [1 LAST]
 /DESTINATION...
  • The first OMS command will select the first and last frequency tables from each FREQUENCIES command.
  • The second OMS command, in the absence of a SUBTYPES or LABELS specification, will select the first and last tables of any kind from the selected command. For the FREQUENCIES command (and most other statistical and charting procedures), the first table would be the Notes table.