SPSS Display

The DISPLAY command prints metadata of the active dataset. See also SYSFILE INFO.


Usage

Dictionary

Used alone, DISPLAY DICTIONARY shows the names, positions, formats, defined missing values, variable labels, and value labels for all variables in order.

display dictionary.
display sorted dictionary.
display dictionary /variables=foo bar baz.

Add the SORTED option to sort variables alphabetically. Add the /VARIABLES subcommand to show information for a subset of variables.

To show only variable names, use DISPLAY NAMES.

To show only names and positions, use DISPLAY INDEX.

To show names, positions, and variable labels, use DISPLAY LABELS.

To show names, positions, formats, and defined missing values, use DISPLAY VARIABLES.

Scratch

To show scratch variable names, try:

display scratch.
display sorted scratch.
display scratch /variables=#foo #bar #baz.

Attributes

To show attributes of the dataset and variables, try:

display attributes.
display sorted attributes.
display attributes /variables=foo bar baz.

@Attributes

To show attributes of the dataset and variables including variables beginning with @ or $@, try:

display @attributes.
display sorted @attributes.
display @attributes /variables=@foo @bar @baz.

Vectors

To show the list of vectors in the order they were declared, try:

display vectors.

Add the SORTED option to sort vectors alphabetically.


Data Model

The DISPLAY command executes immediately. Pending transformations are not executed and the active dataset is not read.


See also

PSPP manual for DISPLAY


CategoryRicottone

SPSS/Display (last edited 2023-06-11 21:19:37 by DominicRicottone)