is there any differnce between proc means and proc summary?
Answer Posted / kumaraswamy madoori
1) Proc Means generate a default output but Proc Summary
require Print option to generate output similar to proc
means.
2) To get similar outputs Proc summary should compulsory
have atleast one variable in VAR statement.
If you want a proof for the above please run the below code:
proc means data=sasuser.admit;
run;
proc summary data=sasuser.admit print;
run;
The outputs will be different.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is auto call macro and how to create a auto call macro? What is the use of it? How to use it in sas with macros? : sas-macro
What do you understand by the term Normal Distribution?
Describe the function and utility of the most difficult SAS macro that you have written?
what is the purpose of _error_? : Sas programming
describe about metadata object? : Sas-di
Explain data step in SAS
How do you specify the number of iterations and specific condition within a single do loop?
Mention the validation tools used in SAS?
What are the difference between the sas data step and sas procs?
how to read the variables in sas? : Sas-administrator
Explain what is data step?
How can you limit the variables written to output dataset in data step?
what is sas and what are the functions? : Sas-administrator
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 the difference between informat and format with an example.