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
how does sas handle missing values in procs? : Sas programming
What do you know about symput and symget?
what are the scrubbing procedures in sas? : Sas programming
Briefly explain input and put function?
what is information maps?
Why double trailing @@ is used in input statement?
Mention the validation tools used in SAS?
Explain what Proc glm does?
what is sas data set?
where to use sas business intelligence? : Sas-bi
Explain the purpose of substr functions in sas programming.
Name and describe few sas character functions that are used for data cleaning in brief.
please can you tell me that in companies sas work are doing by through sas coding or sas wizard ??
what is the difference between floor and ceil functions in sas? : Sas-administrator
Explain bmdp procedure?