How do you add a number to a macro variable?
Answers were Sorted based on User's Feedback
Answer / 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 |
This entry was posted in General. Bookmark the permalink. Post a comment or leave
where are dashboard components are created and maintained? : Sas-bi
Explain data_null_?
How does proc sql work?
What does the RUN statement do?
% let A=3+4 what is result
how do u identify a macro variable
Describe the types of SAS programming tasks that you performed like Tables? Listings? Graphics? Ad hoc reports? Other?
Mention the difference between ceil and floor functions in sas?
What is the difference between %put and symbolgen? : sas-macro
State the difference between INFORMAT and FORMAT ?
tell me about intnx, intcx functions?