I am trying to write my first macro and I am having problems manipulating the parameters inside macro. This is the code: %macro SecondDerivative_New (parlambda, parepsilon); m=%sysevalf(&parlambda+&parepsilon); /* this gives an error ERROR: A character operand was found in the %EVAL function or %IF condition where a numeric operand is required. The condition was: lambda+epsilon */ result1=%FirstDerivative(parlambda=m); %mend; %macro FirstDerivative (parlambda=); 10/&parlambda+24*(exp(-1*&parlambda))/(1-exp(-1*&parlambda))-28.52; %mend; /* call macro */ data; lambda=0.799; epsilon=0.001; %SecondDerivative_New(lambda,epsilon); Thank you
... View more