VARIABLES Subcommand (LIST command)
VARIABLES
specifies the variables to be listed.
- The variables must already exist, and they cannot be scratch or system variables.
- If
VARIABLES
is used, only the specified variables are listed. - Variables are listed in the order in which they are
named on
VARIABLES
. - If a variable is named more than once, it is listed more than once.
- The keyword
ALL
(the default) can be used to request all variables.ALL
can also be used with a variable list (see example below).
ALL. List all user-defined
variables. Variables are listed in the order in which
they appear in the active dataset. This is the default if VARIABLES
is omitted.
Example
LIST VARIABLES=V15 V31 ALL.
-
VARIABLES
is used to list values for V15 and V31 before all other variables. The keywordALL
then lists all variables, including V15 and V31, in the order in which they appear in the active dataset. Values for V15 and V31 are therefore listed twice.