Hello
I am learning about proc print tabulate and report procedures.
Though all of them at the outset seem to be presenting data , I am wondering why there are three ways to do it (perhaps more but currently I am aware of these 3). I mean where would one prefer to use one over the other. Any writeup that compares/contrasts them would really help me. TIA!!!
Hi @SASsusrik,
have a look at
"The Battle of the Titans (Part II): PROC REPORT versus PROC TABULATE" (https://www.lexjansen.com/pharmasug/2023/SD/PharmaSUG-2023-SD-082.pdf) and
"The Workhorses of Customized Report Writing – PROC TABULATE and PROC REPORT" (https://www.lexjansen.com/scsug/2004/Buck%20-%20PROC%20REPORT%20and%20PROC%20TABULATE.pdf).
Maybe you find them helpful.
I am going to add a bit to @Ksharp's summary.
Proc print doesn't calculate anything except sums.
Proc tabulate only displays numeric values in the body of the report (not page, row or column headers) though an applied format can show text for the numeric values. Proc tabulate is easier to get nesting of values in both row and column dimensions. Also Proc Tabulate with care can have the statistics of multiple variables in the same column (as long as the stats requested are the same).
Proc report allows custom calculations and conditional behavior based on the result of other cells in the report.
There are reasons that SAS has separate books for examples of Proc Report and Tabulate and many papers have been written about them for specific applications. They have been around for about 50 years.
Wow, didnt knwo it is that big a thing that books have been authored on the same. Will try to look up. TY!
Do you know of any papers/ books that show examples of comparinc contrasting each one's usage and functions. That will be super helpful to understand the limitations or usages so to speak. TY!
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.
Ready to level-up your skills? Choose your own adventure.