nuomaniya 发表于 2013-10-27 00:46 
怎么写程序,能否指导下,谢谢?
The question is too general and too big.
For your particular question, I think the fastest way is,
data need;
do var1=0,1,3,7;
do var2=0,1,3,7;
do var3=0,1,3,7;
do var4=0,1,3,7;
do var5=0,1,3,7;
output;
end;
end;
end;
end;
end;
run;
I only do five variables, same logic will do more variables. Since it is a Cartesian product, the needed space grows up quickly.