Numbered range lists require you to have a series of
variables with the same name, except for the last character or characters,
which are consecutive numbers. For example, the following two lists
refer to the same variables:
x1,x2,x3,...,xn
x1-xn
In a numbered range
list, you can begin with any number and end with any number as long
as you do not violate the rules for user-supplied variable names and
the numbers are consecutive.
For example, suppose
you decide to give some of your numeric variables sequential names,
as in VAR1, VAR2, and so on. Then, you can write an INPUT statement
as follows:
input idnum name $ var1-var3;
Note that the character
variable NAME is not included in the abbreviated list.