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 do the mod and int function do? : Sas programming

1228


What is the purpose of trailing @ and @@? How do you use them?

1040


Mention how to limit decimal places for the variable using proc means?

1117


What does the trace option do?

1109


What are the difference between sas functions and procedures?

1155


How to create an external dataset with sas code?

1158


explain about data integrator metadata reports? : Sas-di

1107


what is SAS OPTIMIZATION?

2297


How does proc sql work?

1089


what are sas bi dashboard components? : Sas-bi

1174


What do you code to create a macro? : sas-macro

1141


how are numeric and character missing values represented internally? : Sas programming

1146


what is sas business intelligence? : Sas-bi

1180


Can you execute macro within another macro? : sas-macro

996


if the Id has more then two transcatiion then show the first observation, IF Id has only two observation then It show both the observation

1620