BookmarkSubscribeRSS Feed
Gloveman71
Calcite | Level 5

,I have a standard "Proc Print" 4 variable report that is huge.  I am looking to produce this report with multiple logical pages(2-4) on a single page.  Anybody have an example or sample of the "Proc Report" or "Proc Tabulate" that could be used to accomplish this.  The data is summarized before the Proc Print step, so if I could include this in the report or tabulate step, that would also be some help!!!!

These 2 procedures are a little complicated to understand the 1st time out.

Thanx for any help you can provide,

JG

2 REPLIES 2
ballardw
Super User

If you could provide some example data and the rules on how you need to create the table it would help, like how the final table should look.

Depending on the summary you are doing you could very well do the summarization and output in either of these procedures.

Proc tabulate has a page dimension in the tables statement if you want a table for each value of some combination of classification variables. Or create separate tables using multiple table statements within a single call to the procedure.

but we'll need more details before attempting to provide an example.

Cynthia_sas
SAS Super FREQ

Hi, depending on your destination, investigate the use of COLUMNS=. It is designed to work with RTF and PDF. Since you did not show code or provide data, it is hard to comment constructively on what you ask. ODS HTML does not support COLUMNS=, but there is an HTMLPANEL destination that you can use instead. Of course, destinations like LISTING and CSV do not support COLUMNS=. If, on the other hand, you only want the LISTING destination, then PROC REPORT, in LISTING only supports the PANELS= option.

  So, there are options, and many of these options and destinations have had previous forum postings, but without more information from you it is really impossible to make a useful suggestion. But then, I could have completely mis-read your posting, and you might not want 4 columns or panels of your report on a page, so without an example of the output you want it is just a guess on my part that you want to have your 4-column report repeated on a page. The attached screen shot is easily do-able with RTF and PDF and COLUMNS=.

cynthia


twocol_example.png

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 2 replies
  • 687 views
  • 1 like
  • 3 in conversation