Is there a way to create all possible combinations of strings in SAS without using functions (**ideally using loops**). I say that because I want to adapt that code to run in SAS CASL which does not support many sas functions just yet.
Here is my problem: {"a","b","c","d"}
and would like to create all combinations:
{{a,b,c,d},{b,c,d},{c,d},{d},{c},{b,d},{d},{b},{b,c},{c},{b},{a,c,d},.....etc.

Any help is appreciated.
Thanks in advance