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
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.
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.
thanks Ballardw for your valuable inputs 🙂
Rahul
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
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.
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.