if i having variables named a b c d e f ,how to find total of
each variable ????give syntax...??
Answer Posted / puja
Its total of each variable and not row total i suppose
hence the syntax can be given as
proc sql;
create table SUM as
select sum(a) as sum_a,
sum(b) as sum_b,
sum(c) as sum_c,
sum(d) as sum_d,
sum(e) as sum_e,
sum(f) as sum_f
from input_dataset_name;
quit;
| Is This Answer Correct ? | 8 Yes | 3 No |
Post New Answer View All Answers
Mention what is PROC in SAS?
Briefly explain input and put function?
Describe the ways in which you can create macro variables?
Compare sas with other data analytics tools.
what is the limit of the number of the rows and columns available in the worksheet? : Sas-bi
What is the difference between using drop = data set option in data statement and set statement?
Which command is used to save logs in the external file?
How do you control the number of observations and/or variables read or written?
What is the use of the %include statement?
Describe the ways in which you can create a macro variable?
What are the data types that sas contain?
What are the automatic variables for macro? : sas-macro
what is hash files in sas and why we are using this one in sas?
What is the different between functions and PROCs that calculate the same simple descriptive statistics?
How to specify variables to be processed by the freq procedure?