https://support.sas.com/techsup/technote/mr2010c.pdf
https://support.sas.com/rnd/app/macros/MktEx/MktEx.pdf
The MktEx macro makes factorial designs in a straight-forward way (at least when there are no restrictions). Furthermore, it has detailed facilities for imposing restrictions, prohibiting combinations and the like. Look in these sources and elsewhere for examples on restrictions.
... View more