SAS(五)建立SAS数据集的方法
1、data步自己输入数据建立。
data oranges;
input variety $ flavor texture looks;
/*total=flavor+texture+looks;*/
total=flavor+texture+looks;
label total="总数";
cards;
navel 9 8 6
temple 7 7 7
valencia 8 9 9
mandarin 5 7 8
;
proc sort data=oranges;
by descending total;