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
i have a dataset with 100 obs i want to generate title from 20th obs onwards with total observations. that should contain 100 obs.dont use firstobs and dnt split the data. use dataset block or proc report? how can we genarate;
What does P-value signify about the statistical data?
how to generate the test data in sas without input data? : Sas-administrator
how to create the AE dataset by using SDTMIG specifications and SAP plan by using UNIX platform?
What are pdv and it functions?
How do you control the number of observations and/or variables read or written? Approximately what date is represented by the SAS date value of 730?
where to use sas business intelligence? : Sas-bi
Describe the ways in which you can create macro variables? : sas-macro
What are the special input delimiters used in SAS?
Describe a time when you were really stuck on a problem and how you solved it?
How would you define the end of a macro? : sas-macro
Name and describe few sas character functions that are used for data cleaning in brief.
Mention how to limit decimal places for the variable using proc means?
what is the Population you used in your project, is it ITT or PP?
what versions of sas have you used (on which platforms)? : Sas programming