I'm writing a SAS macro which includes a proc sql. Within the proc sql, I need to take a logarithm. I tried doing so using:
%let DDenom=%sysevalf(log(&ProbBad/&ProbGood));
and receive the following error when the macro runs:
'A character operand was found in the %EVAL function or %IF condition when a numeric operand is required.'
What am I doing wrong? I realize that %EVAL only works with integer values and can return this message when asked to do floating-point calculations, but I thought that %sysevalf could handle this kind of calculation. Any help would be greatly appreciated.