答案 0 :(得分:0)
这应该做的工作:
data a;
cust = "A";
channels = 20;
output;
cust = "A";
channels = 30;
output;
cust = "A";
channels = 40;
output;
cust = "B";
channels = 200;
output;
cust = "B";
channels = 300;
output;
cust = "B";
channels = 0;
output;
run;
proc transpose data=a out=b;
by cust;
var channels;
run;