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