Answer Posted / 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 |
Post New Answer View All Answers
What is interleaving in SAS?
Name some categories in sas 9? : sas-grid-administration
What does P-value signify about the statistical data?
explain the difference between alternate key, business key, foreign key, generated key, primary key, retained key and surrogate key ? : Sas-di
what is metadata? : Sas-bi
what are the benefits of data integration? : Sas-di
Give some ways by which you can define the variables to produce the summary report (using proc report)?
If a variable contains only numbers, can it be a character data type?
what do you mean by data staging area? : Sas-di
how does sas handle missing values in procs? : Sas programming
what are input dataset and output dataset options? : Sas programming
What is the function of output statement in a SAS Program?
Which command is used to perform sorting in sas program?
How do you delete duplicate observations in sas?
how to generate the test data in sas without input data? : Sas-administrator