Hi, I am new to SAS and can't figure out how to create a table with all possible permutations from multiple vectors (I actually don't know how to create the vectors either). Could someone point me in the right direction on how to do this? Here is an example of what I am trying to do and how it would be done in R using the expand.grid() function: #Create vectors
states <- c("MA", "NY")
seasons <- c("Fall", "Winter", "Spring", "Summer")
activities <- c("TV", "Board Games")
#Create data frame with all permutations
permutations <- expand.grid(states, seasons, activities) The resulting "permutations" table would be: Var1 Var2 Var3
1 MA Fall TV
2 NY Fall TV
3 MA Winter TV
4 NY Winter TV
5 MA Spring TV
6 NY Spring TV
7 MA Summer TV
8 NY Summer TV
9 MA Fall Board Games
10 NY Fall Board Games
11 MA Winter Board Games
12 NY Winter Board Games
13 MA Spring Board Games
14 NY Spring Board Games
15 MA Summer Board Games
16 NY Summer Board Games
... View more