Move beyond spreadsheets to data mining, forecasting, optimization – and more
![](https://blogs.sas.com/content/iml/files/2011/08/t_allpermutations-100x150.png)
In a previous post, I discussed how to generate random permutations of N elements. But what if you want to systematically iterate through a list of ALL permutations of N elements? In the SAS DATA step you can use the ALLPERM subroutine in the SAS DATA step. For example, the