CODEBOOK
CODEBOOK
is available in Statistics Base Edition.
CODEBOOK
reports the dictionary information -- such as variable names,
variable labels, value labels, missing values -- and summary statistics for all or specified
variables and multiple response sets in the active dataset.
Note: Square brackets used in the CODEBOOK
syntax
chart are required parts of the syntax and are not used to indicate
optional elements. Equals signs (=) used in the syntax chart are required
elements. All subcommands are optional.
CODEBOOK variable [level] variable [level] variable [level]...
/VARINFO
POSITION LABEL TYPE FORMAT MEASURE ROLE ATTRIBUTES VALUELABELS MISSING
RESERVEDATTRIBUTES
/FILEINFO NAME LOCATION CASECOUNT LABEL ATTRIBUTES DOCUMENTS WEIGHT
RESERVEDATTRIBUTES
/STATISTICS NONE COUNT PERCENT MEAN STDDEV QUARTILES
/OPTIONS MAXCATS=200*
VARORDER={FILE** }
{ALPHA }
{VARLIST† }
{MEASURE }
{ATTRIBUTE(name)}
SORT={ASCENDING** }
{DESCENDING }
*Default if subcommand or keyword omitted.
**Default if subcommand omitted and there is no variable list.
†Default if subcommand omitted and the command includes a variable list.
- If the
VARINFO
subcommand is omitted, all variable information exceptRESERVEDATTRIBUTES
is included. - If the
STATISTICS
subcommand is omitted, all statistics are included.
Release History
Release 17.0
- Command introduced.
Release 18
-
ROLE
keyword added toVARINFO
subcommand.
Example
CODEBOOK Age Income $MultCars.