CREATE CATEGORICAL CONSTANT command
See Crunch Automation basics for more information.
The CREATE CATEGORICAL CONSTANT command allows you to create a categorical variable with a single value, which is defined as the only category for this variable.
CREATE CATEGORICAL CONSTANT "label" CODE <int> [NUMERIC VALUE <float>] [DATE "date string"] [MISSING]
Example
CREATE CATEGORICAL CONSTANT "January" CODE 1 DATE "2022-01-01";
CREATE CATEGORICAL CONSTANT "Wave 12" CODE 12;
CREATE CATEGORICAL CONSTANT "Not asked" CODE 99 NUMERIC VALUE 0 MISSING;