PLAN Procedure
The PLAN procedure constructs designs and randomizes plans for factorial experiments, especially nested and crossed experiments and randomized block designs.
PROC PLAN can also be used for generating lists of permutations and combinations of numbers.
The following are highlights of the PLAN procedure's features:
 supports the following randomization selection methods:
 randomized selection, for which the levels are returned in a random order
 ordered selection, for which the levels are returned in a standard order every time a selection is generated
 cyclic selection, for which the levels returned are computed by cyclically permuting the levels of the previous selection
 permuted selection, for which the levels are a permutation of the integers 1, ... , n
 combination selection, for which the m levels are selected as a combination of the integers 1, ... , n taken m at a time

 construct the following types of experimental designs:
 full factorial designs, with and without randomization
 certain balanced and partially balanced incomplete block designs
 generalized cyclic incomplete block designs
 Latin square designs
 can be used interactively
 creates a SAS data set that corresponds to any output table

For further details see the SAS/STAT User's Guide:
The PLAN Procedure
( PDF  HTML )
Examples