Answer Posted / hsong001
Use %eval to do simple calculation for macro variables.
e.g.,
data _null_;
%let a = 1;
%let b = %eval(&a+1);
%put a=&a b=&b;
run;
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
what is sas business intelligence? : Sas-bi
Explain the main difference between the sas procedures and functions? : Sas-administrator
How do you control the number of observations and/or variables read or written? Approximately what date is represented by the SAS date value of 730?
For what purposes have you used sas macros? : sas-macro
How to specify variables to be processed by the freq procedure?
How we can create SAS USER DEFINED CODE?
What is SAS? What are the functions does it performs?
what versions of sas have you used (on which platforms)? : Sas programming
Explain the purpose of retain statement.
How would you identify a macro variable?
what is operational data and operational system? : Sas-di
what is sas enterprise intelligence architecture? : Sas-bi
What sas features do you use to check errors and data validation?
What is the maximum and minimum length of macro variable
What are the applications primarily used by business analyst? : Sas-bi