data work.data;
set work.import;
run;
if x3 > 49 then X7 = 1;
else if x3 < 50 then x7 = 0;
run;
Remove the inner "RUN" and test the program. It can also be written as:
data work.data;
set work.import;
x7 = 0;
if x3 > 49 then X7 = 1;
run;
... View more
The SAS log is the #1 diagnostic tool (also see Maxim 2), so please post the log of your macro call; use the same posting method ({I} button) that you used for posting the code.
As @Astounding already said, the code as such looks good.
... View more