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 the purpose of retain statement.
how does sas handle missing values in procs? : Sas programming
What is the difference between INPUT and INFILE ?
what is sas and what are the functions? : Sas-administrator
Mention some common errors that are usually committed in sas programming.
what is the limit of the number of the rows and columns available in the worksheet? : Sas-bi
How to create a permanent sas data set?
This entry was posted in General. Bookmark the permalink. Post a comment or leave
Mention the validation tools used in SAS?
How many ways to overcome a missing values???
In proc transpose and data step with arrays which one you pick?
What are the features of SAS?
do you prefer proc report or proc tabulate? Why? : Sas programming
What sas features do you use to check errors and data validation?
AE datasets names? how many types?