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 |
There are 200 observations in a dataset, i want to pull out the observation no's 100, 150,180,190 by using Proc SQL? How you can get it?
Mention the category in which sas informats are placed?
What is difference between rename and lable in sas?
What does error:1 mean?
The Lion King is hosting an animal conference. All the animals in the world attend except one. Which animal does not attend?
What is the difference between proportion and average?
Differentiate between format and informat? : sas-grid-administration
SAS using companies in chennai
What are the features of base sas system?
How would you code the criteria to restrict the output to be produced?
We have a string like this "kannafromsalembut" ,from this i want to get only "fromsal" (but one condition with out using substring function)here we can not use scan because in the given string there is no delimeter? so give ans without out using substring ?
what is fact table and factless table?