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 |
Name and describe few sas character functions that are used for data cleaning in brief.
Baseline definition in your study
3 Answers Accenture, Quintiles,
what is slowly changing dimension? : Sas-di
What is the difference between input and infile statement?
"What is the difference between proc sort nodup and proc sort nodupkey?"
What is auto call macro and how to create a auto call macro? What is the use of it? How to use it in sas with macros? : sas-macro
how does sas handle missing values in sort order? : Sas programming
what are the advantages of using SAS in clinical data mangement? why should not we use other software products in managing clinical data?
What is the purpose of the trailing @? The @@? How would you use them?
In SAS how to read the variable values having different formats. eg:mar99,mar1999 (in a single variable)
8 Answers GSK GlaxoSmithKline,
What is the difference between the proc sql and data step?
Where do you use proc means over proc freq?