what is the diff. b/w proc means and proc summary?

Answers were Sorted based on User's Feedback



what is the diff. b/w proc means and proc summary?..

Answer / dupe bassey

proc means generates an output, if you want to suppress an
output, you include the noprint option.

proc summary doesnt generate an output, if you want an
output, you include the print option.

Is This Answer Correct ?    76 Yes 13 No

what is the diff. b/w proc means and proc summary?..

Answer / ram

1. Proc Means By default gives a Printable output,where as
summary does't.
2. If We ommit var statement in MEANS all numeric varibles
wiil be considered into analysis and it calculates
N,MEAN,STD,MIN,MAX by default.
where as Summary does't do like this if we ommit var
statement it gives only simple counts.

Is This Answer Correct ?    50 Yes 4 No

what is the diff. b/w proc means and proc summary?..

Answer / chiranjeevi

proc means:
When ever we are using the proc means procedure by default
it's displaying the results in output window.
syntax:proc means data=<dataset name>;
output out=<newdataset name>;
run;

proc summary:
proc summary doesnt generate an output, if you want an
output, you include and specify the print option.
syntax:proc summary data=<datasetname> print;
output out=<newdatasetname>;
run;

Is This Answer Correct ?    24 Yes 4 No

what is the diff. b/w proc means and proc summary?..

Answer / abhik

I just want to add one point.

Proc Print by default generate output. But Proc summary does
not. So in Proc summary either you have to mention print
option or output data set name. Otherwise you will get an
error in the log:
"
ERROR: Neither the PRINT option nor a valid output statement
has been given"

Is This Answer Correct ?    12 Yes 1 No

what is the diff. b/w proc means and proc summary?..

Answer / sankar

proc means is default printed output.u suppress print
output use noprint option in proc means statement.

proc summary is default noprinted output.u print output
use print option in proc summary statement.
in proc summary must use var statement.

Is This Answer Correct ?    20 Yes 10 No

what is the diff. b/w proc means and proc summary?..

Answer / m.sivakumar

1.specifies whether PROC SUMMARY displays the descriptive
statistics. By default, PROC SUMMARY produces no display
output, but PROC MEANS does produce display output.

2.If you omit the VAR statement, then PROC SUMMARY produces
a simple count of observations, whereas PROC MEANS tries to
analyze all the numeric variables that are not listed in the
other statements.
3.If you specify statistics on the PROC SUMMARY statement
and the VAR statement is omitted, then PROC SUMMARY stops
processing and an error message is written to the SAS log.

Is This Answer Correct ?    14 Yes 5 No

what is the diff. b/w proc means and proc summary?..

Answer / name is no need

differences:
1.The means procedure provides the simple statistics like
N,min,max,mean ans standard deviation.

The summary procedure provides the values _type_,_freq_ and
_stat_.

2.The means procedure gives the ouput/list report by
default.
The summary procedure provides a data set instead of
output/list report
3.proc means syntax:
proc means data=data set name;
class<varible declaration>;
var<variable declaration>;
run;
Proc summary syntax:
proc summary data=data set name;
output out=<new data set name>;
class<variable declaration>;
var<variable declaration>;
run;
4.if we use Noprint and output out=.. options in proc means
it should exactly equals to proc summary.

Is This Answer Correct ?    17 Yes 9 No

what is the diff. b/w proc means and proc summary?..

Answer / padmasri

The major difference between Proc Means and Proc Summary is
proc means by default generates an output but proc summary
does not generate output if we specify print option in the
proc summary it will generate an output.

Is This Answer Correct ?    8 Yes 0 No

what is the diff. b/w proc means and proc summary?..

Answer / phillip

-proc means by default produce an output but proc summary not
-if u don't want output from proc means then add noprint option and if u want output from proc summary then put print option.
-cpu time and real time is more for proc summary(if you are using print option)

Is This Answer Correct ?    6 Yes 0 No

what is the diff. b/w proc means and proc summary?..

Answer / pradeep

Differences between summary and means proceedure are 2.
One is print and noprint options and var statement.
Proc means give diff result with out var statement and proc
summary give diff result with out var statement all u people
try once.

Is This Answer Correct ?    5 Yes 0 No

Post New Answer

More SAS Interview Questions

Describe a time when you were really stuck on a problem and how you solved it?

0 Answers   DELL,


Why and when do you use proc sql?

0 Answers  


What are types of transport files?

2 Answers   PRA Health Sciences, Quintiles,


How to convert a given date value into SAS date

9 Answers   CitiGroup, Quintiles,


how will you locate the sas platform applications? : Sas-bi

0 Answers  






What is the difference Using & and && in the macro variables

5 Answers   Accenture,


please can you tell me that in companies sas work are doing by through sas coding or sas wizard ??

0 Answers  


what is the diff b/w verification validation in sas

3 Answers   SAS,


What are the default statistics that proc means produce?

0 Answers  


What is LOGICAL VARIABLES in SAS.And how it can be used..Can anyone support..???

3 Answers  


Differentiate between ceil and floor functions.

0 Answers  


i have multiple .csv files in a unix directory. every file is having variable names as header.even for empty file also. suppose take 3 files a.csv b.csv c.csv a.csv contains data as name;age,salary; raja;34;4000; ravi;33;5000; kumar;25;3000; b.csv contains data as name;age,salary; ajay;40;4500; and c.csv contains name;age,salary; (only headers) Now i want to import and append all these files in to a single dataset. i tried infile statement with *.csv to import all at a time. but i m not getting correct data. please help me . its urgent. thank you in advance

2 Answers   Tech Mahindra,


Categories