OPTIONS Subcommand (CODEBOOK command)
The OPTIONS
subcommand allows you to suppress
the display of value labels, counts, and percents for variables with
more than a specified number of values or value labels and control
the order in which variables are displayed in the output.
- If the
CODEBOOK
command does not include a variable list, the default display order is ascending file order. - If the
CODEBOOK
command includes a variable list, the default display order is the order in which the variables are listed on the command.
MAXCATS Keyword
MAXCATS=N. Suppress counts and percents for variables with more than the specified number of valid values. The default is 200. This applies to nominal and ordinal variables, multiple response sets, and labeled values of scale variables. For scale variables, the number of categories is the number of labeled values.
VARORDER Keyword
The optional VARORDER
keyword
is followed by an equals sign (=) and one of the following alternatives:
FILE. File order.
ALPHA. Alphabetic order by variable name.
VARLIST. Order in which variables and multiple response sets are listed on the command. If there is no variable list, this setting is ignored, and the default file order is used.
MEASURE. Sort by measurement level. This creates four sorting groups: nominal, ordinal, scale, and unknown. (Note: The measurement level for numeric variables may be "unknown" prior to the first data pass when the measurement level has not been explicitly set, such as data read from an external source or newly created variables. The measurement level for string variables is always known.)
ATTRIBUTE (name). Alphabetic order by user-defined custom attribute name and value. In ascending order, variables that don't have the attribute sort to the top, followed by variables that have the attribute but no defined value for the attribute, followed by variables with defined values for the attribute in alphabetic order of the values. See VARIABLE ATTRIBUTE for more information.
SORT Keyword
The optional SORT
keyword
is followed by an equals sign (=) and one of the following alternatives:
ASCENDING. Ascending order.
DESCENDING. Descending order.
Example
CODEBOOK
/OPTIONS MAXCATS=50 VARORDER=ALPHA SORT=DESCENDING.