Generates all distinct combinations of the non-missing values of n variables taken k at a time in lexicographic order.
Category: | Combinatorial |
Restriction: | The LEXCOMB function cannot be executed when you use the %SYSFUNC macro. |
specifies an integer variable that is assigned values ffrom 1 to the number of combinations in a loop.
is a constant, variable, or expression between 1 and n, inclusive, that specifies the number of items in each combination.
specifies either all numeric variables, or all character variables that have the same length. The values of these variables are permuted.
Requirement | Initialize these variables before you execute the LEXCOMB function. |
Tip | After executing the LEXCOMB function, the first k variables contain the values in one combination. |