[code:2hkz529s]%macro sum(x=,y=);
%put from x to y equals %eval((&x+&y)*(&y-&x+1)/2);
%mend sum;
%sum(x=1,y=100);
data tmp;
input a @@;
cards;
88 95 80 90 99 100 89 92 89 79
77 68 98 100 88 89 84 78 88 97
;
run;
proc sort data=tmp;
by a;
run;
data _null_;
set tmp end=last;
if last then put 'The max number is ' a;
run;[/code:2hkz529s]