Hi there, I am creating a macro and the apply a condition. The macro variable is correctly calculated it is not well evaluated in the condition. See below a piece of the code and the log. *Calculating the ratio E/U2; data _null_; set data; call symputx ('E',a_var_e); call symputx ('U2',a_var_u2); run; %let ratio = %sysevalf(&E/&U2); %if &ratio > 0.0001 and &ratio <= 10 %then %put NOTE: Ratio in [0,10] ; %else %put ERROR: Ratio not in [0,10], consider removing extreme observations; The log. MLOGIC(ROOT_ESTIMATES): %LET (variable name is RATIO) SYMBOLGEN: Macro variable E resolves to 0.1937225404 SYMBOLGEN: Macro variable U2 resolves to 0.0813614747 SYMBOLGEN: Macro variable RATIO resolves to 2.3810106824428 SYMBOLGEN: Macro variable RATIO resolves to 2.3810106824428 MLOGIC(ROOT_ESTIMATES): %IF condition &ratio > 0.0001 and &ratio <= 10 is FALSE MLOGIC(ROOT_ESTIMATES): %PUT ERROR: Ratio not in [0,10], consider removing extreme observations ERROR: Ratio not in [0,10], consider removing extreme observations Any idea how to solve this issue? Thanks a lot.
... View more