how to add distinctly var variable values ex..
Data a;
input var;
datalines;
0
1
2
3
-1
-2
-3
;
run;
adding all +ve value in one varibale n do the same for -ve
too
Answer Posted / mahesh babu b
data test1;
set a;
if find(var,'-') >0 then b=var;
else c=var;
run;
| Is This Answer Correct ? | 3 Yes | 5 No |
Post New Answer View All Answers
what is information maps?
What are the ways to do a “table lookup” in sas?
what is the difference between unique key and primary key? : Sas-di
what type of graphs we will create(for 2+years candidates)?
Mention sas system options to debug sas macros.
AE datasets names? how many types?
Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?
Define run-group processing?
What is PROC in SAS?
What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?
explain the proc in sas? : Sas-administrator
What are the data types that sas contain?
What do you understand by the term Normal Distribution?
How you can read the variables that you need?
Mention the category in which sas informats are placed?