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
Give e an example of..
What are the advantages of using sas?
What are symget and symput? : sas-macro
What do the mod and int function do? : Sas programming
Explain what is SAS informats?
Explain what is data step?
How to create list output for cross-tabulations in proc freq?
what are some differences between proc summary and proc means? : Sas programming
what are all the reports you generated in your recent project?
what is information maps?
What do you know about sas data set?
what is PhaseIII, ODS, TLG, Macro and Proc in SAS
What is SAS? What are the functions does it performs?
what is study design in while working with SAS? what are screening variables in SAS?
How does SAS handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, PROCs?