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 |
Please write codes to merge two datasets and keep every record in the first dataset.
how to import XTP files into SAS datasets?
1 Answers Barclays, Institute For Plasma Research,
what is option year cuttoff in sas
how can you improve the performance of a query, If it is excuting very slowly?
how many types prompting framework can be broken down to? : Sas-bi
Can you execute a macro within a macro? Describe. : sas-macro
Give some examples where proc report’s defaults are different than proc print’s defaults?
If reading a variable length file with fixed input, how would you prevent SAS from reading the next record if the last variable didn?t have a value?
Why Info School? BUILD YOUR CAREER WITH RIGHT GUIDANCE AND SUPPORT
What are some problems you might encounter in processing missing values? In Data steps? Arithmetic? Comparisons? Functions? Classifying data?
How would you define the end of a macro?
Which date functions advances a date time or date/time value by agiven interval?