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 program data vector (pdv)?
What are the statements that are executed only?
Explain what is SAS informats?
Which are the statements whose placement in the data step is critical?
What are symget and symput? : sas-macro
Describe the function and untility of the most difficult SAS macro that you have written.
how are numeric and character missing values represented internally? : Sas programming
What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?
What are the default statistics for means procedure?
What are the new features included in the new version of SAS Programming Language?
Which command is used to save logs in the external file?
What is the maximum length of the macro variable? : sas-macro
Do you need to rearrange the order of the data for the report?
explain what is data set in sas? : Sas-administrator
What does PROC print, and PROC contents do?