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 |
In the SAS Data step what is the difference between the subsetting done by Where and subsetting done by If?
how to handle in stream data containing semicolon in it?
What are the special input delimiters used in SAS?
What are the new features included in the new version of SAS Programming Language?
What do you feel about hardcoding?
For what purpose would you use the RETAIN statement?
you have a data set like this. data qqq; input name $ total; cards; qq 22 ww 33 qq 22 ee 44 rr 33 ww 44 ; run; and you want output like this......... name total qq 22 ww 44 Do it by data set step.
is there any difference between proc summary and proc means?
what is pdv? how it is related to input buffer in sas?
AE datasets names? how many types?
what are sas/access and sas/connect? : Sas programming
What is the difference between informat and format statement?