Sort the activities data set by the variable that contains the starting date. You are not required to sort the holidays data set.


proc sort data=allacty;
   by date;
run;