[…] Two related articles: How to generate permutations and how to generate combinations in SAS …