Appendixes | List-Style Specification

List-Style Specification
This optional field allows you a convenient method to specify variables that are numbered sequentially or contain a common prefix when there are more than can be conveniently selected by highlighting the variables in the Available Variables field and using the button. A typical List-Style Specification field is shown below:
List-style specification fields are always associated with a variable field, as illustrated below:
You can use one or the other or both fields to specify the requisite variables. The methods for this specification are described in the table below:
*
Type var: in the text box.
All variables beginning with var will be specified.
For example, to specify all of the variables in your data set that begin with the prefix var and all of the variables that begin with the prefix geno,
*
Type var: geno: in the text box.
All variables beginning with either var or geno will be specified.
Caution: When specifying variables with different prefixes using the common prefix notation (_:) can change the order of variables in the output data. If you have more than one prefix for variables, be sure the order of the markers in the data set has been sorted by prefix to avoid unexpected results. If you are unsure of the order, you can specify the variables by position in the data set as described below. In this case, you reference the left-most and right-most variables1 in the data set separated by a double hyphen. For example, if the first ordered variable in the data set is var1 and the last is geno500, specify var1--geno500.
For example, suppose your data set contains 2500 variables, var1 to var2500, and you want to specify the first 500 variables.
*
Type var1-var500 in the text box.
All of the variables between and including var1 and var500 will be specified.
For example, suppose your data set contains 2500 variables, var1 to var2500, and you want to specify var101, var456 and var1210.
Type var101 var456 var1210 in the text box. Separate each variable with a single space.
Variables var101, var456, and var1210 will be specified.
For example, suppose your data set contains 2500 variables, var1 to var2500, and you want to specify var1, var2400 and all of the variables between var1210 and var2150.
*
Type var1 var1210-var2150 var2400 in the text box.
Variables var1, var2400, and all of the variables between var1210 and var2150, inclusively, will be selected
You can also specify these variables using both the List-Style Specification field and the associated variable field.
*
Highlight var1 in the available variable field and click to add var1 to the Variables field.
*
Repeat for var2400.
*
Type in the var1210-var2150 in the text box.
Note: This method is especially useful when specifying variables with different prefixes.
For example, suppose your data set contains 5 variables, A1, B2, C3, D18 and F10, and you want to specify B2, C3 and D18.
*
Type B2--D18 in the text box.
Variables B2, C3, and F10 will be specified.
For example, suppose your data set contains 2500 numeric variables, var1 to var2500, and 5 character variables, A1 , B2, C3, D18 and F10, and you want to specify all of the numeric variables.
*
Type _numeric_ in the text box.
All of the numeric variables (var1 to var2500) will be specified.
For example, suppose your data set contains 2500 numeric variables, var1 to var2500, and 5 character variables, A1 , B2, C3, D18 and F10, and you want to specify only the numeric variables between D18 and F10.
*
Type D18_numeric_F10 in the text box.
All of the numeric variables located between D18 and F10 will be specified.
For example, suppose your data set contains 2500 numeric variables, var1 to var2500, and 5 character variables, A1 , B2, C3, D18 and F10, and you want to specify all of the character variables.
*
Type _character_ in the text box.
All of the character variables (A1 , B2, C3, D18, and F10) will be specified.
For example, suppose your data set contains 2500 numeric variables, var1 to var2500, and 5 character variables, A1 , B2, C3, D18 and F10, and you want to specify character variables located between var1251 to var2000.
*
Type var1251_character_var2000 in the text box.
All of the character variables located between var1251 and var2000 will be specified.
*
Type _all_ in the text box.

1
You can use the Check Data Contents process to determine the names and order of the variables in the data set.

Caution: Using the common prefix notation (_:) could potentially include variables created by SAS procedures, in spite of your intention otherwise. Therefore, it is strongly recommended that you either avoid this notation, or specify the longest prefix possible before the colon to avoid capturing extraneous variables.
Note: If you change your mind and would like to reset the field, click Clear.