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
how to do user inputs and command line arguments in sas?
which date function advances a date, time or datetime value by a given interval? : Sas programming
What are the applications primarily used by business analyst? : Sas-bi
Explain what Proc glm does?
Explain data_null_?
what is the purpose of _error_? : Sas programming
what is change analysis in sas di ? : Sas-di
How does proc sql work?
what is sas database server? : Sas-di
What are the uses of sas?
Did you used proc test? when?
What are common programming errors committed in sas
Describe the function and untility of the most difficult SAS macro that you have written.
What is maximum storage capability of SAS?
How to create an external dataset with sas code?