what is the difference between proc means and proc summary?
Answers were Sorted based on User's Feedback
Answer / kitty
proc means has default print option where as in proc summary
to print the output in output window u need to specify print
option. in simple words proc summary with print option is
same as proc means.
| Is This Answer Correct ? | 11 Yes | 1 No |
Answer / abc
proc summary without var statement gives only sum.
proc summary with var !!!to proc means
| Is This Answer Correct ? | 2 Yes | 2 No |
Name and describe three SAS functions that you have used, if any?
What is the purpose of trailing @ and @@? How do you use them?
what is SAS/Access and SAS/Connect?what are the uses?
what is slowly changing dimension? : Sas-di
How to get any kind of data in SAS? Is it possible to take data from notepad in SAS?
What are the difficulties u faced while doing vital signs table or dataset?
i have a dataset with 25 obs; 10th obs has like ramu,anji,ramu,azad,ramu like this. i want to know how many times the word repeats in that obs?
How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?
Why and when do you use proc sql?
When merging 2 datasets with a common variable (not merge key), how to keep both?
/* This is example of age caluculate wihtout to display perfect days and years in output window */ data age; retain dob "12jun2003"d now "24may2011"d; age1=now-dob; age=(now-dob)/365.25; years=int(age); days1=round((age-years)*365.25); months=month(now)-1; if days1 gt 30 and months in(12,10,8,6,4,2)then do; month1=days1/30.4375; month=int(days1/30.4375); if day(now)=1 then days=1; else days=round((month1-month)*30.4375)+1; drop days1 month1 month; end; else if days1 gt 30 and months in (1,3,5,7,9,11)then do; month1=days1/30.4375; month=int(days1/30.4375); if day(now)=1 then days=1; else days=round((month1-month) *30.4375); drop days1 month1 month; end; drop age age1; proc print data=age; format dob now date.; run;
if reading an external file to produce an external file, what is the shortcut to write that record without coding every single variable on the record