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
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?
How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?
how to do user inputs and command line arguments in sas?
if the Id has more then two transcatiion then show the first observation, IF Id has only two observation then It show both the observation
Do you need to rearrange the order of the data for the report?
Explain the special input delimiters used in sas programming.
How to create a permanent sas data set?
What is the use of stop statement?
What are the automatic variables for macro? : sas-macro
what is the use of sas management console? : Sas-di
Differentiate between ceil and floor functions.
What is the general format of function in sas? : sas-grid-administration
What do you understand by the term Normal Distribution?
What is the difference between input and infile statement?
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;