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 / ravikumar marappan

data test;
input var;
retain sub;
retain ad;
if var < 0 then sub=sum(sub,var);
else ad=sum(ad,var);
datalines;
1
2
3
-1
-2
-3
;
run;

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What makes sas stand out to be the best over other data analytics tools?

1018


What is maximum number of rows and cols can be handled in SAS?

1509


Enlist the functions performed by sas.

1082


For clinical entire study how many tables will create approx?

1921


In SAS explain which statement does not perform automatic conversions in comparisons?

1279


Give some examples where proc report’s defaults are different than proc print’s defaults?

1019


what is change analysis in sas di ? : Sas-di

1000


What are the implications?

1643


sas implementing companies in pune implementing clinical projects if anyone knows plz send ans immediately

3544


I am preparing SAS Certified Advanced Programmer for SAS 9 in 2014. If anybody has the latest dumps for this exam, please mail me at dhiman.mukherjee@gmail.com

2668


For a user to have access to a standard workspace server, is internal authentication alone is sufficient? : sas-grid-administration

956


Describe 5 ways to do a “table lookup” in SAS?

1106


what is the difference between floor and ceil functions in sas? : Sas-administrator

1203


Mention the validation tools used in SAS?

1115


how do you want missing values handled? : Sas programming

909