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 sas and what are the functions? : Sas-administrator
What is PROC in SAS?
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;
Differentiate between format and informat? : sas-grid-administration
What is the SAS data set?
Differentiate input and infile.
what are the types of interactive display types? : Sas-bi
How would you identify a macro variable?
What is the role of unrestrictive users? : sas-grid-administration
What is a put statement?
What is the basic syntax style in SAS?
What is the difference between one to one merge and match merge? Give an example.
What is the differnce between SDTM 3.1.2 to 3.1.1 version
hi all, I need the SAS DI DUMP(A00 260) for attending the certification. if any one have, pls provide it.Please Email to vrpotluri@hotmail.com. Thanks - Ramana
what is information maps?