In reply to Khadi.

The ALLCOMB function always generates an integer matrix that you can use as indices to another matrix. The RANCOMB function can generate random combinations of a vector, as shown in the doc.

I don't know how to interpret "combinations from a matrix." Perhaps you are asking about the ExpandGrid function. You might want to ask your question on the SAS Support Communities and include the output that you want to see.