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
Name validation tools used in SAS
State the difference between INFORMAT and FORMAT ?
Describe 5 ways to do a “table lookup” in SAS?
What is interleaving in SAS?
what is snowflake schema? : Sas-di
Explain the use of proc gplot? : sas-grid-administration
Give some ways by which you can define the variables to produce the summary report (using proc report)?
What is data _null_?
List down the reasons for choosing sas over other data analytics tools.
data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.
Explain what Proc glm does?
what is the difference between nodup and nodupkey options? : Sas programming
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
what are several options for creating reports in web report studio? : Sas-bi
Are you involved in writing the inferential analysis plan? Tables specifications?