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 |
Explain the difference between nodup and nodupkey options?
how to perform paired t-test using Base/SAS & SAS/Stat?
What does error:1 mean?
what is the use of proc sql? : Sas programming
Are you involved in writing the inferential analysis plan? Tables specifications?
% let A=3+4 what is result
how to remove the duplicates by proc sql?
I use NOCUM/NOPERCENT option in the tables statement like this Proc freq data = deepak; tables x y /nocum nopercent; run; Here I get nopercent and nocum in the output only for variables x and y. How do i do it for all variables? Deepak
how can you improve the performance of a query, If it is excuting very slowly?
What is the difference between one to one merge and match merge? Give an example.
What do you feel about hardcoding?
In proc transpose and data step with arrays which one you pick?
0 Answers Accenture, Quintiles,