The CATMOD Procedure


  • PROC CATMOD <options>;

The PROC CATMOD statement invokes the CATMOD procedure. Table 32.4 summarizes the options available in the PROC CATMOD statement.

Table 32.4: PROC CATMOD Statement Options




Names the input SAS data set


Specifies the length of effect names


Suppresses the normal display of results


Specifies the sort order for the levels of classification variables

You can specify the following options.


names the SAS data set containing the data to be analyzed. By default, the CATMOD procedure uses the most recently created SAS data set. For details, see the section Input Data Sets.


specifies the length of effect names in tables and output data sets to be n characters long, where n is a value between 24 and 200. The default length is 24 characters.


suppresses the normal display of results. The NOPRINT option is useful when you only want to create output data sets with the OUT= or OUTEST= option in the RESPONSE statement. A NOPRINT option is also available in the MODEL statement. Note that this option temporarily disables the Output Delivery System (ODS); see Chapter 20: Using the Output Delivery System, for more information.


specifies the sort order for the levels of classification variables. This affects the ordering of the populations, responses, and parameters, as well as the definitions of the parameters. The default, ORDER=INTERNAL, orders the variable levels by their unformatted values (for example, numeric order or alphabetical order).

The following table shows how PROC CATMOD interprets values of the ORDER= option.

Value of ORDER=

Levels Sorted By


Order of appearance in the input data set


External formatted value, except for numeric variables with no explicit format, which are sorted by their unformatted (internal) value


Descending frequency count; levels with the most observations come first in the order


Unformatted value

By default, ORDER=INTERNAL. For ORDER=FORMATTED and ORDER=INTERNAL, the sort order is machine dependent. See the section Ordering of Populations and Responses for more information and examples. For more information about sort order, see the chapter on the SORT procedure in the Base SAS Procedures Guide and the discussion of BY-group processing in SAS Language Reference: Concepts.