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 PDV?

1094


how to do user inputs and command line arguments in sas?

2975


Hi, Does anybody has lastest SAS certification(base, adv., clinical)dumps,if anybody has please email me at mailtorajani76@gmail.com. Thanks

2199


What is the difference between %local and %global? : sas-macro

1119


in the flow of data step processing, what is the first action in a typical data step? : Sas programming

1014


For clinical entire study how many tables will create approx?

1905


What is the basic syntax style in SAS?

1094


What are the default statistics for means procedure?

1168


What is the difference between one to one merge and match merge? Give an example.

997


how to remove duplicates using proc sql?

1091


What are the new features included in the new version of SAS Programming Language?

1150


If a variable contains letters or special characters, can it be numeric data type?

1160


Can you explain the process of calendar?

1057


what is study design in while working with SAS? what are screening variables in SAS?

2179


name several ways to achieve efficiency in your program? : Sas programming

985