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 PDV?
how to do user inputs and command line arguments in sas?
Hi, Does anybody has lastest SAS certification(base, adv., clinical)dumps,if anybody has please email me at mailtorajani76@gmail.com. Thanks
What is the difference between %local and %global? : sas-macro
in the flow of data step processing, what is the first action in a typical data step? : Sas programming
For clinical entire study how many tables will create approx?
What is the basic syntax style in SAS?
What are the default statistics for means procedure?
What is the difference between one to one merge and match merge? Give an example.
how to remove duplicates using proc sql?
What are the new features included in the new version of SAS Programming Language?
If a variable contains letters or special characters, can it be numeric data type?
Can you explain the process of calendar?
what is study design in while working with SAS? what are screening variables in SAS?
name several ways to achieve efficiency in your program? : Sas programming