I am working in SAS Enterprise guide and want to create a table that contains all possible permutations of some columns. Here is an example:
Lets say I have three columns
apple pear plum
0 good blue
1 middle violet
bad
I would want my output table to look as follows:
apple pear plum
0 good blue
0 good violet
0 middle blue
0 middle violet
0 bad blue
0 bad violet
1 good blue
1 good violet
1 middle blue
1 middle violet
1 bad blue
1 bad violet
My actual code has more columns with more distinct values, so hard coding is definitely not an option. How can I create such a table in SAS?
Thanks up front for the help!