ID subcommand (CASESTOVARS command)
The ID subcommand
specifies variables that identify the rows from the original data
that should be grouped together in the new data file.
- If the
IDsubcommand is omitted, onlySPLIT FILEvariables (if any) will be used to group rows in the original data and to identify rows in the new data file. -
CASESTOVARSexpects the data to be sorted bySPLIT FILEvariables and then byIDvariables. If split-file processing is in effect, the original data should be sorted on the split variables in the order given on theSPLIT FILEcommand and then on theIDvariables in the order in which they appear in theIDsubcommand. - A variable may appear on both the
SPLIT FILEcommand and theIDsubcommand. - Variables listed on the
SPLIT FILEcommand and on theIDsubcommand are copied into the new data file with their original values and dictionary information unless they are dropped with theDROPsubcommand. - Variables listed on the
IDsubcommand may not appear on theFIXEDorINDEXsubcommands. - Rows in the original data for which any
IDvariable has the system-missing value or is blank are not included in the new data file, and a warning message is displayed. -
IDvariables are not candidates to become a variable group in the new data file.