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
Briefly explain input and put function?
What does PROC print, and PROC contents do?
what are all the reports you generated in your recent project?
What is the difference between nodupkey and nodup options?
What is the maximum length of the macro variable? : sas-macro
What is the good sas programming practices for processing large data sets?
Enlist the syntax rules followed in sas statements.
What was the last computer book you purchased? Why?
How sas treats the dsd delimiters?
How necessary is it to be creative in your work?
How do dates work in SAS data?
How would you define the end of a macro?
What are pdv and it functions?
What are the scrubbing procedures in sas?
Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?