BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Rahul_SAS
Quartz | Level 8

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

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

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

3 REPLIES 3
ballardw
Super User

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.

Rahul_SAS
Quartz | Level 8

thanks Ballardw for your valuable inputs 🙂

Rahul

Cynthia_sas
SAS Super FREQ

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

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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