Q #27
data temp;
input day month$ temp;
datalines;
1 may 75
15 may 70
15 june 80
3 june 76
2 july 85
14 july 89
;
run;
proc sort data=temp;
by descending month day;
run;
proc print data=temp;
run;
Why the result is :
Obs day month temp
1 1 may 75
2 15 may 70
3 3 june 76
4 15 june 80
5 2 july 85
6 14 july 89
【在 s*********y 的大作中提到】 : Q #27 : data temp; : input day month$ temp; : datalines; : 1 may 75 : 15 may 70 : 15 june 80 : 3 june 76 : 2 july 85 : 14 july 89