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


Please Help Members By Posting Answers For Below Questions

describe how to adjust the performance of data integrator? : Sas-di

751


Give e an example of..

1834


State the difference between INFORMAT and FORMAT ?

810


What are the new features included in the new version of SAS Programming Language?

949


is data integration and etl programming is same? : Sas-di

790


what is transformation in sas data integration? : Sas-di

756


which date functions advances a date time or date/time value by a given interval? : Sas programming

731


Which command is used to save logs in the external file?

793


explain about sas business intelligence? : Sas-bi

816


Given an unsorted data set, how to read the last observation to a new data set?

1088


What is the role of sas grid administrator? : sas-grid-administration

1049


What is substr function?

852


what is change analysis in sas di ? : Sas-di

785


Are you involved in writing the inferential analysis plan? Tables specfications?

2310


what is business intelligence? : Sas-bi

797