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

How do you add a number to a macro variable? : sas-macro

949


What are the ways to do a “table lookup” in sas?

973


what is hierarchy flattening? : Sas-di

1028


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

2677


For a user to have access to a standard workspace server, is internal authentication alone is sufficient? : sas-grid-administration

939


Mention common programming errors committed in sas ?

1056


what do the sas log messages "numeric values have been converted to character" mean? What are the implications? : Sas programming

1175


Intern stastical programmer written test

677


how do you pull data from equifax?tell me the process?

1741


How would you invoke a macro? : sas-macro

1035


What are the functions which are used for character handling functions?

1075


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

1061


What is a method for assigning first.VAR and last.VAR to the BY group variable on unsorted data?

2525


What is connection profile? : sas-grid-administration

1106


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

1032