Sentry Page Protection
** Question 1 **;
proc sort data=sashelp.cars out=cars; by make model msrp; where make in ('Honda', 'Audi'); run; data cars2; set cars; by make model msrp; if first.make; run; ** Question 2 **; proc sort data=sashelp.prdsal2 out=prdsal2; by country prodtype; run; data prdsal_all; set prdsal2; by country prodtype; if first.prodtype then total=0; total+actual; if last.prodtype; keep country prodtype total; run; |