data work.merged; merge cert.patdat cert.visit; by id; run; proc print data=work.merged; run;
Syntax, RENAME= data
set option:
(RENAME=(old-variable-name=new-variable-name))
|
data work.merged; merge cert.patdat (rename=(date=BirthDate)) cert.visit (rename=(date=VisitDate)); by id; run; proc print data=work.merged; run;