How to add a number to a macro variable?
Submitted by: AdministratorUse %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;
Submitted by: Administrator
e.g.,
data _null_;
%let a = 1;
%let b = %eval(&a+1);
%put a=&a b=&b;
run;
Submitted by: Administrator
Read Online SAS (Statistical Analysis System) Job Interview Questions And Answers
Top SAS (Statistical Analysis System) Questions
☺ | In PROC PRINT, can you print only variables that begin with the letter “A”? |
☺ | How to add a number to a macro variable? |
☺ | What is option year cuttoff in sas? |
☺ | Code the tables statement for a single-level (most common) frequency? |
Top Data Warehouse Job Categories
☺ | Warehouse Assistant Interview Questions. |
☺ | Ab Initio Interview Questions. |
☺ | Data Stage Interview Questions. |
☺ | ColdFusion Interview Questions. |
☺ | Data Warehouse Supervisor Interview Questions. |