data pd_score;
merge pd_score(in=a) long_run_pd;
by segment_id;
if pd>long_run_pd then long_run_pd=pd;
if a;
run;
in the above, if segment_id is the same, pd is different in pd_score and long_run_pd, which pd do we get in the resulting table in the merging process?
also the if then statement, does it matter if it is after the statement if a or before it ...
I was also looking at the following merge:
data long3;
merge long_run_pd pd_score;
by segment_id sampdate;
run;
here I am sure if segment_id, sampdate same, it will take pd from sampdate which we can think of as b
but after this I cant figure out how it works for the other merge with if A anymore...
... View more