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

What are the applications primarily used by business analyst? : Sas-bi

994


What is program data vector (pdv) and what are its functions?

1237


How to create an external dataset with sas code?

1150


How would you identify a macro variable? : sas-macro

1016


how will you location sas platform applications available from web browser? : Sas-bi

1071


Mention what is SAS data set?

1130


How do you test for missing values?

1629


How to sort in descending order?

1253


Have you used macros? For what purpose you have used? : sas-macro

1038


How do you specify the number of iterations and specific condition within a single do loop?

1099


If you use a symput in a data step, when and where can you use the macro variable? : sas-macro

1074


how do you want missing values handled? : Sas programming

953


explain the difference between proc means and proc summary?

1118


In ARRAY processing, what does the DIM function do?

1168


What is the maximum length of the macro variable? : sas-macro

1090