Permutations Task

About the Permutations Task

The Permutations task computes the possible permutations of a given number of objects.

Example: Calculating the Permutations of Six Objects

To create this example:
  1. In the Tasks section, expand the Combinatorics and Probability folder and double-click Permutations. The user interface for the Permutations task opens.
  2. On the Options tab, specify these options.
    Assign columns to these roles:
    Option Name
    Value to Specify
    Number of objects
    6
    Data set name
    Perms
  3. To run the task, click Submit SAS Code.
The Permutations task creates an output data set. In SAS Studio, this data set opens on the Output Data tab.
Output Data Set Named Work.Perms

Setting Options

All of these options are required to run the Permutations task.
Option Name
Description
Observations
Number of objects
specifies the number of objects for which you want to compute permutations. This value can range from 1 to 10.
Output Data Set
Data set name
specifies the name of the output data set.