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 / manoj

Or instead of giving all the var-list you can just give:-

Proc print data= sas data set;
sum _numeric_;
run;

It will give sum of all the numeric variable present in the dataset.
Else if you have all the variables as numeric type, then you can give :-

Proc print data= sas data set;
sum _all_;
run;

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what other sas products have you used and consider yourself proficient in using? : Sas programming

1115


what is operational data and operational system? : Sas-di

1115


How to convert a numeric variable to a character variable?

1209


what is sas application server, database server, sas olap server and sas metadata server? : Sas-di

1016


explain about sas business intelligence? : Sas-bi

1146


Mention the category in which sas informats are placed?

1020


How do you use the do loop if you don’t know how many times you should execute the do loop?

1262


What are the difference between ceil and floor functions in sas?

1352


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

1084


What is the work of tranwrd function?

1248


What are the parameters of scan function?

1177


What is the basic syntax of a sas program?

1209


What do the put and input function do?

1064


What is the difference between reading data from an external file and reading data from an existing data set?

1175


what is data governance? : Sas-di

1025