Thank you very much! I used the following code to achieve what I needed, then found your response: proc sort data = indata; by Pateint_ID day run; data want; set indata; by Patient_ID; retain First_Obs; if first.Patient_ID then FirstObs=Lipid_Levels; run;quit;
... View more