Thank you Jim. How do I know which day SAS is seeing to know which "sameday" SAS is using? When I used the nodupkey option to drop duplicate categorical month/days in order to get the dataset the sample comes from, I don't know which of the days it dropped from among the numerical month/yrs. Here's some of the original code, if that helps. *Turn o_moyr into a character variable to aid in grouping crime count; data crime.crime3; set crime.crime2; o_monyrc = put(o_year, dtmonyy7.); run; (lots of code...) data main.dataset5_a ; set main.dataset5; where tract in (305, 402,403,501,506,708,902,1005,1017,1106,1113,1114,1115,1203, 1204,1207,1301,1302,1304, 1404, 1405, 1603, 1607, 2807, 2902); run; *19043 observations, 57 variables; proc sort data=main.dataset5_a out=main.dataset5_a2 nodupkey; by tract o_monyrc; run; *5704 observations, 57 variables; proc sort data=main.dataset5_a2; by tract o_moyr; run;
... View more