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 work.merged; merge cert.patdat(in=inpat) cert.visit(in=invisit rename=(date=BirthDate)); by id; run;
data work.merged; merge cert.patdat(in=inpat rename=(date=BirthDate)) cert.visit(in=invisit rename=(date=VisitDate)); by id; if inpat=1 and invisit=1; run; proc print data=work.merged; run;
if inpat=1 and invisit=1; if inpat and invisit;