MRSETS

The MRSETS command defines and manages multiple response sets. Multiple response sets can be used in the GGRAPH and CTABLES (Tables option) commands.

MRSETS

 /MDGROUP NAME= setname  {LABEL= 'label'      }
                         {LABELSOURCE=VARLABEL}
  CATEGORYLABELS={VARLABELS    }
                 {COUNTEDVALUES}
  VARIABLES= varlist
  VALUE= {value  }
         {'chars'}

 /MCGROUP NAME= setname  LABEL= 'label'
    VARIABLES= varlist

 /DELETE NAME= {[setlist]}
               {ALL      }

 /DISPLAY NAME= {[setlist]}
                {ALL      }

The set name must begin with a $ and follow IBM® SPSS® Statistics variable naming conventions.

Square brackets shown in the DELETE and DISPLAY subcommands are required if one or more set names is specified, but not with the keyword ALL.

This command takes effect immediately. It does not read the active dataset or execute pending transformations. See the topic Command Order for more information.

Syntax for the MRSETS command can be generated from the Multiple Response Sets dialog.

Release History

Release 14.0

Example

MRSETS
  /MDGROUP NAME=$mltnews LABEL='News sources' 
   VARIABLES=news5 news4 news3 news2 news1 
   VALUE=1
  /DISPLAY NAME=[$mltnews].


MRSETS
  /MCGROUP NAME=$mltcars 
   LABEL='Car maker, most recent car' 
   VARIABLES=car1 car2 car3
  /DISPLAY NAME=[$mltcars].