Merge the sorted data sets Work.Adsort and Work.Strsort and exclude unmatched observations. |
|
data sasuser.merged; merge work.adsort (rename=(date=AdmitDate)) work.strsort (rename=(date=VisitDate)); by id; run; proc print data=sasuser.merged; run; |
|
Copyright © 2002 SAS Institute Inc.,
Cary, NC, USA.
All rights reserved.