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

if i having variables named a b c d e f ,how to find total of
each variable ????give syntax...??

Answer Posted / puja

Its total of each variable and not row total i suppose
hence the syntax can be given as
proc sql;
create table SUM as
select sum(a) as sum_a,
sum(b) as sum_b,
sum(c) as sum_c,
sum(d) as sum_d,
sum(e) as sum_e,
sum(f) as sum_f
from input_dataset_name;
quit;

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Mention what is PROC in SAS?

1006


Briefly explain input and put function?

1027


Describe the ways in which you can create macro variables?

1109


Compare sas with other data analytics tools.

981


what is the limit of the number of the rows and columns available in the worksheet? : Sas-bi

1033


What is the difference between using drop = data set option in data statement and set statement?

1104


Which command is used to save logs in the external file?

1024


How do you control the number of observations and/or variables read or written?

1190


What is the use of the %include statement?

1081


Describe the ways in which you can create a macro variable?

1032


What are the data types that sas contain?

1118


What are the automatic variables for macro? : sas-macro

1136


what is hash files in sas and why we are using this one in sas?

2153


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

1719


How to specify variables to be processed by the freq procedure?

1024