Rename your datasets all with the same prefix, like DS1, DS2...DS10.
%macro sortit;
%do i = 1 to 10;
proc sort data=ds&i;
by var1 var2...;
run;
%end;
%mend
%sortit;
Ready to join fellow brilliant minds for the SAS Hackathon?
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.