Syntax, IN= data set
option:
(IN= variable)
Within the DATA step,
the value of the variable is 1 if the data set contributed data to
the current observation. Otherwise, its value is 0.
|
data clinic.merged; merge clinic.demog(in=indemog) clinic.visit(in=invisit rename=(date=BirthDate)); by id; run;
data clinic.merged; merge clinic.demog(in=indemog rename=(date=BirthDate)) clinic.visit(in=invisit rename=(date=VisitDate)); by id; if indemog=1 and invisit=1; run; proc print data=clinic.merged; run;
if indemog=1 and invisit=1; if indemog and invisit;