VARIABLES Subcommand (DISPLAY command)
VARIABLES
(alias NAMES
) limits the displayed
information to a set of specified variables. VARIABLES
must be the last specification on DISPLAY
and can follow any specification
that requests information about variables (all except VECTOR
, SCRATCH
, DOCUMENTS
, and MACROS
).
- The only specification is a slash followed by a list of variables. The slash is optional.
- If the keyword
SORTED
is not specified, information is displayed in the order in which variables are stored in the active dataset, regardless of the order in which variables are named onVARIABLES
.
Example
DISPLAY SORTED DICTIONARY
/VARIABLES=DEPT, SALARY, SEX TO JOBCAT.
-
DISPLAY
exhibits dictionary information only for the variables named and implied by the keywordTO
on theVARIABLES
subcommand, sorted alphabetically by variable name.