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
what is SAS OPTIMIZATION?
How long can a macro variable be? A token? : sas-macro
What is the use of %include statement?
Why double trailing @@ is used in input statement?
If you use a symput in a data step, when and where can you use the macro variable? : sas-macro
What is your favorite all time computer book? Why?
What commands are used in the case of including or excluding any specific variables in the data set?
what is program data vector? : Sas-administrator
how does sas handle missing values in procs? : Sas programming
I have a SCD Type 2 Dimention for Location In which A Sales Office in Having two Surrogate Keys just because of the change in it's Sales Group. SKey SalesGroup Sales Office BeginDate EndDate 280 SG1 SO1 01APR2000 01APR2010 281 SG2 SO1 02APR2010 31MAR2999 Now while loading the Fact, the Lookup ir returning SKey 280 for records before and after 01APR2010. I am not able to give WHERE condition in the Lookup Properties (TranDate between BeginDate and EndDate). Please help.
i have a dataset with 100 obs i want to generate title from 20th obs onwards with total observations. that should contain 100 obs.dont use firstobs and dnt split the data. use dataset block or proc report? how can we genarate;
Hi all, If Anybody has Advance SAS Certification dumps??? Please share with me. Email: pramod.kalugade03@gmail.com
how do you test for missing values? : Sas programming
describe about physical data integration? : Sas-di
what are the considerations when picking a SAS/STAT procedure?