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
In sas, what are the areas that you are most interested in? : sas-grid-administration
what is function of retain statment
If you need the value of a variable rather than the variable itself what would you use to load the value to a macro variable? : sas-macro
Describe crosslist option in tables statement?
what can you learn from the sas log when debugging? : Sas programming
how do the in= variables improve the capability of a merge? : Sas programming
what are the softwares and applications that are used most frequently used by sas bi applications developers? : Sas-bi
What is the difference between input and infile statement?
What are the difference between the sas data step and sas procs?
what is change analysis in sas di ? : Sas-di
Mention what are the data types does SAS contain?
what is the primary data source for the wrs? : Sas-bi
what is the one statement to set the criteria of data that can be coded in any step? : Sas programming
What is the work of tranwrd function?
what are input dataset and output dataset options? : Sas programming