data work.combined;
merge TMP1.HW10Demo (in=inD) TMP2.HW10Baseline (in=inB);
by Site;
if inD and inB then Complete=11;
else if inD and ~inB then Complete=10;
else Complete=01;
Age=yrdif(DOB,Entry,'act/act');
TTime=datdif(Entry,Test,'act/act');
data work.DBF;
merge work.combined TMP3.HW10Followup;
FupTime=datdif(Entry,fupdt,'act/act');
data work.SID;
merge TMP1.HW10Baseline (in=inB) TMP3.HW10Followup (in=inF);
by Site;
if inB and inF then keep Site ID fupdt fuptest Test Score;
else if inB and ~inF then drop fupdt fuptest Test Score;
run; My last data step I am trying to merge those two sets and only keep variables that have both Baseline and Follow Up data in the new set. I am getting an error that says my variables have never been referenced. Help please!
... View more