To add a number in macro use %EVAL macro
%Let A= 2; %Let B= 3; %Let total= &A + &B ; then it will give you value total=2 + 3
but If you will use %eval it will give you sum
%Let total= %eval(&A + &B)
Now this will give you the correct answer
Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!