Thanks for your reply, DBailey. But my question is actually:
Is it right to compare two variables a, b, if they are in two different datasets of data1, and data2? So,
DATA test;
MERGE data1 data2;
BY ID_1;
IF a+b > 10; /*Note: a in data1, b in data2*/
RUN;
My question is: does the merge happens before the IF a+b>10 statement? If this is true, then the code does not cause problem. But if the merge happens after that, then this causes problem, as variable a does not exist at all the data2.
... View more