Hi,
Are you sure that the error is in that line? I have written the code and works fine for me
data test;
format V7400-V7403 V7500-V7505 V7440 best12.;
V7400=1;
V7401=1;
V7402=1;
V7403=1;
V7500=-1;
V7501=-1;
V7502=-1;
V7503=-1;
V7504=-1;
V7505=1;
V7440=7;
IF SUM(V7400,V7401,V7402,V7403,(-1)*V7500,(-1)*V7501,(-1)*V7502,(-1)*V7503,(-1)*V7504,(-1)*V7505) ^= SUM(V7440) then do ;
put "IT WORKS";
end;
run;
Since the V7440 ne 8, IT WORKS is printted in the log.
... View more