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...

calculate the sum of value using only DATA STEP.
data count_;
input year name $ value;
cards;
2006 xxx 10
2007 yyy 12
2006 xxx 20
2008 yyy 15
2007 xxx 15
;

out put should be like this
year name T_value
-----------------------
2006 xxx 30
2007 xxx 15
2007 yyy 12
2008 xxx 15

Answer Posted / xxx

here i can write the code using PROC SQL;
plz ans in DATA STEP;

proc sql;
select year,name, sum(value)as T_value from count_ group by
year, name having sum(value) order by name;
quit;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Enlist the syntax rules followed in sas statements.

1076


How would you invoke a macro? : sas-macro

1106


Explain what is the use of proc gplot?

1185


explain the proc in sas? : Sas-administrator

1081


Have you ever used the SAS Debugger?

1748


What is auto call macro and how to create a auto call macro? What is the use of it? How to use it in sas with macros? : sas-macro

1032


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

1150


what is the difference between nodup and nodupkey options? : Sas programming

1179


Name few SAS functions?

1091


What do you understand by the term Normal Distribution?

979


Give e an example of..

2090


State the difference between INFORMAT and FORMAT ?

1093


what is the Population you used in your project, is it ITT or PP?

2736


what is slowly changing dimension? : Sas-di

1116


explain the function of substr in sas? : Sas-administrator

1006