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
Explain what is SAS informats?
explain what is factor analysis? : Sas-administrator
what is information maps?
what are the new features included in the new version of sas i.e., Sas 9.1.3? : Sas programming
I need level 2 to 5 sas using companies in india
What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?
What is the maximum length of the macro variable? : sas-macro
for what purpose would you use the retain statement? : Sas programming
how can you put a "trace" in your program? : Sas programming
How do dates work in sas?
Hi, If anyone has base SAS certification dumps, please share.
Give an example where SAS fails to convert character value to numeric value automatically?
what cause the "error: connect:" and "error in the libname statement" when there weren't any such problems?
What are the scrubbing procedures in sas?
what are _numeric_ and _character_ and what do they do? : Sas programming