Proc Report Vs Proc Tabulate

Accepted Solution Solved
Reply
Contributor
Posts: 64
Accepted Solution

Proc Report Vs Proc Tabulate

Hi All,

I am new to SAS and trying to make my carrier in SAS. I was asked in an interview "what are the difference between PROC TABULATE AND PROC REPORT". Can anyone help me to understand the use and difference within two.

Regards

Rahul


Accepted Solutions
Solution
‎11-13-2013 10:43 AM
Super User
Posts: 11,343

Re: Proc Report Vs Proc Tabulate

Posted in reply to Rahul_SAS

The two main difference as I see it are:

Proc Report allows calculations involving input variables so you can have a column of output related to sums/difference/ratios/ whatever between the values of varibles. Proc Tabulate cannot do this except for some very limited percentages.

Proc tabulate allows for multiple levels of nesting of categorical variables in both column and row dimensions with Proc Report doesn't.

View solution in original post


All Replies
Solution
‎11-13-2013 10:43 AM
Super User
Posts: 11,343

Re: Proc Report Vs Proc Tabulate

Posted in reply to Rahul_SAS

The two main difference as I see it are:

Proc Report allows calculations involving input variables so you can have a column of output related to sums/difference/ratios/ whatever between the values of varibles. Proc Tabulate cannot do this except for some very limited percentages.

Proc tabulate allows for multiple levels of nesting of categorical variables in both column and row dimensions with Proc Report doesn't.

Contributor
Posts: 64

Re: Proc Report Vs Proc Tabulate

thanks Ballardw for your valuable inputs :-)

Rahul

SAS Super FREQ
Posts: 8,864

Re: Proc Report Vs Proc Tabulate

Posted in reply to Rahul_SAS

Hi:

  Another important distinction is that PROC TABULATE only produces summary reports (one report row represents a group of observation's statistics) while PROC REPORT can produce either detail (one report row = one observation) or summary reports. PROC REPORT can add extra summary lines using a LINE statement at certain break points on the report. And, PROC REPORT  can do trafficlighting based on more than one condition (using and IF statement and CALL DEFINE).

cynthia

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 3500 views
  • 4 likes
  • 3 in conversation