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

Code a PROC MEANS that shows both summed and averaged
output of the data.

Answer Posted / amit nakrani

I think we can do it in following way. Please correct me if
it is wrong.

proc means noprint data = sourcedata;
var var1 var2;
by var3;(optional)
output out = newdata
sum(var1,var2) = SumVar1 SumVar2
mean(var1,var2) = MeanVar1 MeanVar2;
run;

proc print data = newdata;
run;

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1119


Hi Jeevan/Akshara I have tried to contact SASI Vats for latest Advanced SAS Programming Certification Dumps (A00-212) but have not got any response. I would highly and gratefully appreciate your assistance in this regard. If you guys have access to this, would you be kind enough to forward it to me ? I would abide by all the terms you have for this. Please, note my email id: upretigopi@yahoo.com Preti Sharma

3518


what is the difference between infile and input? : Sas-administrator

1144


What system options would you use to help debug a macro? : sas-macro

1097


how does sas handle missing values in a merge? : Sas programming

1048


How many ways to overcome a missing values???

2814


What is the general format of function in sas? : sas-grid-administration

975


What is the difference between INPUT and INFILE ?

1324


Give an example where SAS fails to convert character value to numeric value automatically?

1090


How to create list output for cross-tabulations in proc freq?

1114


What is the different between functions and PROCs that calculate the same simple descriptive statistics?

1794


what is a method for assigning first.var and last.var to the by groupvariable on unsorted data? : Sas programming

1010


What are the features of base sas system?

1069


What are common programming errors committed in sas

1150


What is the order of application for output data set options, input data set options and SAS statements?

1561