Hi, it's not clear to me what you're exactly trying to compare. You mean something like this?
data have;
input TP_1 $ TP_2 $ ;
datalines;
t1 t4
t2 t3
t3 t2
t1 t1
t2 t4
t3 t3
;
run;
%macro test(inds=,outds=,timepoint1=,timepoint2=);
%if &timepoint1. ne &timepoint2. and &timepoint1. ne and &timepoint2. ne %then %do;
data &outds.;
set &inds.;
if &timepoint1. eq &timepoint2. then put "NOTE: " &timepoint1.= "eq" &timepoint2.= "at" _N_=;
run;
%end;
%mend test;
%test(inds=have,outds=want,timepoint1=TP_1,timepoint2=TP_2);
... View more