Hello I have this code that is doing as intended but I get this warning error in my log. How do I workaround that? I basically want maxrecdate and maxrec to merge to vischk1 by usubjid and adt for further processing but without it altering the current version of my data in totedps1_pre with the merge statement applied
proc sql;
create table maxrec1 as
select distinct usubjid,
adt,
adt as maxrecdate,
aval as maxrec,
visit,
from vischk1
where aval ne . and visit not in('Screening','Day 1','Week 1') and max(swrel,swnrel,t2cm,rtt1l28d)=0
order by usubjid,paramcd,adt,visit;
run;
data totedps1_pre;
merge vischk1 maxrec1;
by usubjid adt;
run;
... View more