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 is the difference between %put and symbolgen? : sas-macro

667


For what purpose would you use the RETAIN statement?

1038


Explain translate function?

630


how does sas handle missing values in assignment statements? : Sas programming

565


List out some key concept of SAS

617






Give e an example of..

1841


What are the differences between sum function and using “+” operator?

576


What are the different types of sas functions?

606


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

613


if the Id has more then two transcatiion then show the first observation, IF Id has only two observation then It show both the observation

1162


What is the difference between order and group variable in proc report?

833


What are the data types in sas?

604


What are types of transport files?

6835


how do you test for missing values? : Sas programming

577


what is function of retain statment

1522