Generates all combinations of the values of n variables taken k at a time in a minimal change order.
Category: | Combinatorial |
Restriction: | The ALLCOMB function cannot be executed when you use the %SYSFUNC macro. |
specifies an integer variable that is assigned values from 1 to the number of combinations in a loop.
specifies an integer 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.
Restriction | Specify no more than 33 items. If you need to find combinations of more than 33 items, use the CALL ALLCOMBI routine. |
Requirement | Initialize these variables before executing the ALLCOMB function. |
Tip | After executing ALLCOMB, the first k variables contain the values in one combination. |