http://www.albany.edu/~msz03/epi514/notes/first_last.pdf
data indiv4;
set indiv3;
if N_entry > 9;
run;
proc sort;by subgroup;
run;
data indiv5;
set indiv4;
by subgroup;
first_id=first.subgroup;
last_id=last.subgroup;
run;
http://www.albany.edu/~msz03/epi514/notes/first_last.pdf
data indiv4;
set indiv3;
if N_entry > 9;
run;
proc sort;by subgroup;
run;
data indiv5;
set indiv4;
by subgroup;
first_id=first.subgroup;
last_id=last.subgroup;
run;