Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

what is information maps?

2273


What are the ways to do a “table lookup” in sas?

1074


what is the difference between unique key and primary key? : Sas-di

1173


what type of graphs we will create(for 2+years candidates)?

2356


Mention sas system options to debug sas macros.

1233


AE datasets names? how many types?

2556


Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?

1955


Define run-group processing?

1092


What is PROC in SAS?

1099


What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?

1197


explain the proc in sas? : Sas-administrator

1128


What are the data types that sas contain?

1244


What do you understand by the term Normal Distribution?

1030


How you can read the variables that you need?

1171


Mention the category in which sas informats are placed?

1076