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 [NUMERIC VALUE ] [DATE "date string"] [MISSING]
AS alias, ..., alias
[TITLE "string", ..., "string"]
[DESCRIPTION "string", ..., "string" | COPY]
[NOTES "string", ..., "string" | COPY];
Example
CREATE CATEGORICAL CONSTANT "January" CODE 1 DATE "2022-01-01"
AS month
TITLE "Month"
DESCRIPTION "Month of operation";