Answer Posted / saurabh gupta
To add a number in macro use %EVAL macro
Example
%Let a= 2;
%Let b= 3;
%Let c= &a + &b ;
then it will give you value
c=2 + 3
but If you will use %eval it will give you sum
%Let c= %eval(&a + &b)
Now this will give you the correct answer
c=5
| Is This Answer Correct ? | 15 Yes | 0 No |
Post New Answer View All Answers
How to sort in descending order?
why is sas data integration studio important? : Sas-di
how to read the variables in sas? : Sas-administrator
Hi Jeevan/Akshara I have tried to contact SASI Vats for latest Advanced SAS Programming Certification Dumps (A00-212) but have not got any response. I would highly and gratefully appreciate your assistance in this regard. If you guys have access to this, would you be kind enough to forward it to me ? I would abide by all the terms you have for this. Please, note my email id: upretigopi@yahoo.com Preti Sharma
What is the difference between where and if statement?
What are the functions used for character handling?
What are all the problems you faced while validating tables and reports?
Mention few capabilities of sas framework.
What are the uses of sas?
What are types of transport files?
what is scheduling and how will u implement it. In scheduling 5 jobs r running if there is an error occured at 3rd job and how will u check and waht necessary steps will u take not to repeat the same mistake
What do the put and input function do?
Have you ever used the SAS Debugger?
What do you code to create a macro? : sas-macro
What do you know about symput and symget?