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

sas implementing companies in pune implementing clinical projects if anyone knows plz send ans immediately

3326


What is the role of unrestrictive users? : sas-grid-administration

769


which date function advances a date, time or datetime value by a given interval? : Sas programming

787


describe about physical data integration? : Sas-di

755


What do you code to create a macro? : sas-macro

790


What is substr function?

839


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

904


Explain the difference between nodup and nodupkey options?

788


Explain proc univariate?

778


explain the concepts and capabilities of business object? : Sas-bi

718


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

1673


How can I remove header from output data set?

2315


I am preparing SAS Certified Advanced Programmer for SAS 9 in 2014. If anybody has the latest dumps for this exam, please mail me at dhiman.mukherjee@gmail.com

2464


how we can create a FLAG datasets? Ex:-ID age_group no_persons 1 to 10 10 to 20 3 11 to 20 21 to 30 7 21 to 3o 31 to 40 5

1862


what is change analysis in sas di ? : Sas-di

777