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 techniques and/or procs do you use for tables? : Sas programming
Differentiate between ceil and floor functions.
Describe what are the different levels of administrative users in sas? : sas-grid-administration
What do the put and input function do?
what is the purpose of _error_? : Sas programming
What is program data vector (pdv) and what are its functions?
hi tell be about pfizer? how to compare the work with other companies ? please tell me how to login and work also?
Can you explain the process of calendar?
how would you determine the number of missing or nonmissing values in computations? : Sas programming
Explain input and put function?
Describe the ways in which you can create macro variables?
what is the primary data source for the wrs? : Sas-bi
how could you generate test data with no input data? : Sas programming
How will you react when, while consulting a SAS documentation manual to get an answer to a problem, someone says hey, I thought you were supposed to know all that stuff already, and not have to look it up in a book?
What are the statements in proc sql?