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
Which command is used to perform sorting in sas program?
What are the differences between proc means and proc summary?
Name any two sas spawners? : sas-grid-administration
Differentiate between sas functions and sas procedures.
what is the Population you used in your project, is it ITT or PP?
In proc transpose and data step with arrays which one you pick?
Explain the use of proc print and proc contents?
what do the pad and dim functions do? : Sas programming
i want for interview question & answer plz it need immediate send t my mail raviprakashmot@gmal.cm
What Proc glm does?
Given an unsorted data set, how to read the last observation to a new data set?
What is the purpose of trailing @ and @@? How do you use them?
If you need the value of a variable rather than the variable itself what would you use to load the value to a macro variable? : sas-macro
How to specify variables to be processed by the freq procedure?
what are the benefits of data integration? : Sas-di