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

Briefly explain input and put function?

1071


What does PROC print, and PROC contents do?

1221


what are all the reports you generated in your recent project?

2188


What is the difference between nodupkey and nodup options?

1026


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

1080


What is the good sas programming practices for processing large data sets?

1099


Enlist the syntax rules followed in sas statements.

1076


What was the last computer book you purchased? Why?

2368


How sas treats the dsd delimiters?

1206


How necessary is it to be creative in your work?

2468


How do dates work in SAS data?

1163


How would you define the end of a macro?

1081


What are pdv and it functions?

1125


What are the scrubbing procedures in sas?

995


Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?

1903